On 2/14/07, Jonathan Ellis <[EMAIL PROTECTED]> wrote:
> The other major architectural limitation in python is the GIL, a giant
> lock that synchronizes calls to the interpreters core. Thus
> multithreaded programs can not utilize multiple processing units. In
> practice this usually isn't a huge deal. I'd say much of the time a
> multithreaded app is best done with an asynchronous library anyway, like
> twisted. But threads have their place. Just be aware of this
> limitation when doing heavy computations with python.
Well, if you're doing heavy computation, it should be in a C library
that releases the GIL properly. So in practice this isn't as big a
limitation as it sounds -- all the python stdlib that deals with
blocking or disk-touching system calls does this, for instance.
-Jonathan
Good to know. Thanks Jonathan.
/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/