[Python-Dev] Reworking the GIL
solipsis at pitrou.net
Mon Oct 26 16:58:49 CET 2009
Sturla Molden <sturla <at> molden.no> writes:
> 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). T
> Should a priority request for the GIL take a priority number?
Er, I prefer to keep things simple. If you have lots of I/O you should probably
use an event loop rather than separate threads.
> Related issue: Should Python threads have priorities? They are after all
> real OS threads.
Well, precisely they are OS threads, and the OS already assigns them (static or
dynamic) priorities. No need to replicate this.
(to answer another notion expressed in another message, there's no "round-robin"
More information about the Python-Dev