[ANNOUNCE] Garbage collection for Python

Bjorn Pettersen bjorn at roguewave.com
Tue Apr 11 12:24:16 EDT 2000


Helge Hess wrote:
> 
> Will Ware wrote:
> > Florian Weimer (fw at deneb.cygnus.argh.org) wrote:
> > > Is it possible to extend your GC in a way which would permit the
> > > execution of several bytecode interpreters in multiple threads?
> >
> > It sounds like you might want to simply run several copies of the
> > Python interpreter in separate processes, which isn't a GC issue.
> 
> I think what he wants to do (me too ;-) is to run several copies of the
> interpreter in *one* process, possibly in multiple threads.
> But I'm not sure whether this is a GC issue though (RC isn't thread-safe
> anyway, right ?).

Well, it actually can be -- at least on Windows :-)

Windows have system calls for atomic increment/decrement
(InterlockedIncrement/InterlockedExchangeAdd), something that is sorely
lacking from Unix (*sigh*)

-- bjorn




More information about the Python-list mailing list