AW: [pypy-dev] multiple isolated VMs in a single process
Jeremy Hylton
jeremy at zope.com
Mon Feb 10 21:28:05 CET 2003
On Fri, 2003-02-07 at 16:33, Tobias Oberstein wrote:
> > > > A valid use case, IMO. although some people would say
> > > > that you might use ZODB which does it with multiple
> > > > processes. To me the biggest point for using processes
> > > > is stability. It does come at a cost, though. You have
> > > > to deal with "copies" of objects and only have "shared"
> > > > objects at a higher level. This might suit your needs, though.
This is a bit off-topic, but I wanted to clarify about ZODB. ZODB does
allow a multi-threaded application to use multiple database
connections. Each connection is associated with a thread and gets in
independent / isolated view of the database. This approach has the
costs you mention -- multiple copies of objects in particular -- but
sharing is a bit cheaper because method calls replace IPC.
Jeremy
More information about the Pypy-dev
mailing list