[Python-Dev] Reworking the GIL (original) (raw)

Sturla Molden sturla at molden.no
Mon Oct 26 14:43:04 CET 2009


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.



More information about the Python-Dev mailing list