> From: Armin Rigo <[EMAIL PROTECTED]>
>
> Hi Peter,
>
> On Fri, Nov 16, 2007 at 10:53:39PM +1300, Peter Fraser wrote:
> > Is  "multiple isolated (but bridged) VM's in a single process" a
> > possible general technique?
> >
> > If  multiple cooperating processes is a reasonable response to the
> > "single threaded VM meets multi-core architecture" problem  -then is
> > "multiple VM's in a single process" a better one?
>
> This is probably yet another place where PyPy could go much more easily
> than CPython:  multiple VMs in the same process which would by default
> not have any share state, but expose primitives to the Python programmer
> to explicitly share some objects.  This is not trivial: there is some
> research and experimentation to be done here.

This sounds similar to what I'm doing with CPython: normal objects are
contained within a single Monitor, whereas shareable objects
(explicitly given a thread-safe API) can be passed between.

http://code.google.com/p/python-safethread/

-- 
Adam Olsen, aka Rhamphoryncus
_______________________________________________
[email protected]
http://codespeak.net/mailman/listinfo/pypy-dev

Reply via email to