Python threading (was: Re: global interpreter lock not working as it should)

Jonathan Hogg jonathan at onegoodidea.com
Sun Aug 4 16:04:20 CEST 2002


On 4/8/2002 14:28, in article j4ado2rbwn.fsf at aramis.informatik.hu-berlin.de,
"Martin v. Löwis" <loewis at informatik.hu-berlin.de> wrote:

> The thing is that the scheduling policy won't be SCHED_RR. First, this
> is available to the superuser only. Furthermore, there is no Python
> API to enter the SCHED_RR class (the relevant pthreads API is not
> exposed).
> 
> So anybody wishing to do real-time threads has to modify the
> interpreter, anyway (perhaps exposing additional functionality in the
> process); they can then also solve the GIL problem in a way that is
> appropriate for them. Most likely, they will find that assigning
> different priorities to their threads will be sufficient. Getting
> SCHED_RR to work will be tricky.

Yeah, well, I was assuming that the OP was running Python with realtime
scheduling via some means since they were complaining that it won't work ;-)

Jonathan




More information about the Python-list mailing list