At 08:36 PM 6/5/2001 -0400, Jay Love wrote:
>Geoff Talvola wrote:
>
>>I also argued that we'd be better off storing the threads on a stack
>>instead of a queue.  That way the most recently used threads get 
>>reused,  which may produce slightly better performance.  I wonder if 
>>there's a  thread-safe Stack class analogous to the Queue class that 
>>comes with Python?
>
>We don't store the threads or select which one runs.  They all contend for 
>a Queue and whichever one gets it gets it.

You're right, my misunderstanding.  In practice on Windows NT, it does 
looks like it cycles through the threads, but it's not because they are 
stored on a Queue.  The exact behavior could vary by OS.


- Geoff


_______________________________________________
Webware-devel mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to