Parallelization on muli-CPU hardware?

Alex Martelli aleaxit at yahoo.com
Wed Oct 6 06:18:19 EDT 2004


"Sam G." <nospam:samuelgay at yahoo.fr> wrote:

> OK, a mistake from me, I read more on GIL to understand well. Thanks to
> correct me.
> 
> But if only one thread per interpreter could run at a time, in multicore
> two (or more) thread can't run at the same time. In performance the 
> result is almost the same : if the server has nothing else than running
> python (not real i know, just to be simple), only one core work...
> 
> Not very good for Zope, as multicore are for the near future...

Unless Zope can use multiple processes (I don't know whether it can or
not), the trouble's already there -- multi-CPU computers are already
widespread and have been for a while (all PowerMacs except the
entry-point ones, and I believe all Mac Servers, have been using
multiple CPUs for years now).  It does, however, appear to me that
structuring a server application into multiple processes rather than
into multiple threads shouldn't be that big a deal anyway.  And with
multiple processes you can exploit multiple CPUs or cores easily.


Alex



More information about the Python-list mailing list