Re: [Python-Dev] Reworking the GIL

by Sturla Moldenon 2009-10-26T15:47:27+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). T
Should a priority request for the GIL take a priority number?
- If two threads make a priority requests for the GIL, the one with the
higher priority should get the GIL first.
- If a thread with a low priority make a priority request for the GIL,
it should not be allowed to "preempt" (take the GIL away from) a
higher-priority thread, in which case the priority request would be
ignored.
Related issue: Should Python threads have priorities? They are after all
real OS threads.
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