Kill GIL

Peter Hansen peter at engcorp.com
Tue Feb 15 07:28:33 EST 2005


Adrian Casey wrote:
> Aahz wrote:
>>Threads and forks tend to be problematic.  This is one case I'd recommend
>>against threads.
> 
> Multiple threads interacting with stdin/stdout?  I've done it with 2 queues. 
> One for feeding the threads input and one for them to use for output.  In
> fact, using queues takes care of the serialization problems generally
> associated with many threads trying to access a single resource (e.g.
> stdout).  Python Queues are thread-safe so you don't have to worry about
> such issues.

Hee hee.... do you realize who you're writing these comments to?

This is like someone telling _me_ I could be more effective using
test-driven development to write my code... ;-)

-Peter



More information about the Python-list mailing list