Re: [Python-Dev] Reworking the GIL

by Sturla Moldenon 2009-10-26T13:45:13+00:00
Antoine Pitrou skrev:
> - priority requests, which is an option for a thread requesting the GIL
> to be scheduled as soon as possible, and forcibly (rather than any other
> threads).
So Python threads become preemptive rather than cooperative? That would
be great. :-)
time.sleep should generate a priority request to re-acquire the GIL; and
so should all other blocking standard library functions with a time-out.
S.M.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/bull%40pubbs.net

Conversations: [Python-Dev] Reworking the GIL