Re: what would you like to see in a 2nd edition Nutshell?

2004-12-30 Thread alecwy
Discussion of GIL and (in)ability to control thread priority.
Thanks for asking!

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: threading priority

2004-12-17 Thread alecwy
I googled as suggested, and the answer isn't crystal clear.  My
impression is that the problem is that a python thread must acquire the
GIL in order to execute, and the strategy for deciding which thread
should get the GIL when multiple threads are waiting for it is not
based on priority.  Is that correct?

-Alec


Peter Hansen wrote:
 Joe Wong wrote:

  Hi, Is there any way to increase/decrease a thread priority in
Python?

 Not really, and as Python does not use a free-threading model,
 it wouldn't work as you'd like anyway.

 Search Google for Python GIL or Global Interpreter Lock and you
 should learn enough to see why this is so.
 
 -Peter

-- 
http://mail.python.org/mailman/listinfo/python-list