[Python-Dev] Pythonic concurrency

Nick Coghlan ncoghlan at gmail.com
Tue Oct 11 12:36:59 CEST 2005


Bruce Eckel wrote:
>>Yes, there's a troublesome meme in the world: "threads are hard".
>>They aren't, really.  You just have to know what you're doing.
> 
> 
> I would say that the troublesome meme is that "threads are easy." I
> posted an earlier, rather longish message about this. The gist of
> which was: "when someone says that threads are easy, I have no idea
> what they mean by it."
> 
> Perhaps this means "threads in Python are easier than threads in other
> languages."

One key thing is that the Python is so dynamic that the compiler can't get too 
fancy with the order in which it does things. However, Python threading has 
its own traps for the unwary (mainly related to badly-behaved C extensions, 
but they're still traps).

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://boredomandlaziness.blogspot.com


More information about the Python-Dev mailing list