26 Oct
2009
26 Oct
'09
1:43 p.m.
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.