From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,892e1892fb725ca0,start X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-09-30 22:42:56 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!pipex!lyra.csx.cam.ac.uk!cam-orl.co.uk!thg From: thg@cam-orl.co.uk (Tim Glauert) Newsgroups: comp.unix.osf.osf1 Subject: Dumb pthreads question Date: 30 Sep 1994 12:53:22 GMT Organization: Olivetti Research Ltd Distribution: world Message-ID: <36h1o2$aa7@lyra.csx.cam.ac.uk> NNTP-Posting-Host: shrimp.cam-orl.co.uk I want to create a "worker" thread in a process which will only run when all the other threads are blocked. It appears that I ought to be using the SCHED_RR scheduling in pthreads, but I can't get it to work. Should it work? Does anyone have a simple example of it working? I'm using OSF 2.0 on a DECstation something-or-other (flamingo). Thanks, Tim. Tim Glauert, Olivetti Research Limited, | EMAIL thg@cam-orl.co.uk 24a Trumpington Street, Cambridge, England. | TEL +44 223 343232 | FAX +44 223 313542