Thread confusion about Python and Windows

Aahz aahz at pythoncraft.com
Tue May 13 10:37:39 EDT 2003


In article <3ec0a481 at usenet.per.paradox.net.au>,
Cameron Zemek <grom_3 at optusnet.com.au> wrote:
>
>Then why on earth is there multi-threaded libraries??

Because you can call out to non-Python libraries that *do* run
thread-hot.  It's only pure Python code (or code that uses the Python
API) that blocks on the GIL.  For example, if you run a multi-threaded
web spider on an SMP box, socket calls will run simultaneously on
multiple CPUs.
-- 
Aahz (aahz at pythoncraft.com)           <*>         http://www.pythoncraft.com/

"In many ways, it's a dull language, borrowing solid old concepts from
many other languages & styles:  boring syntax, unsurprising semantics,
few automatic coercions, etc etc.  But that's one of the things I like
about it."  --Tim Peters on Python, 16 Sep 93




More information about the Python-list mailing list