From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,892e1892fb725ca0 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-10-01 07:49:50 PST Path: bga.com!news.sprintlink.net!redstone.interpath.net!tophat.mauney.com!mauney From: mauney@tophat (Jon Mauney) Newsgroups: comp.unix.osf.osf1 Subject: Re: Dumb pthreads question Date: 30 Sep 94 17:36:59 GMT Organization: Interpath -- Providing Internet access to North Carolina Message-ID: References: <36h1o2$aa7@lyra.csx.cam.ac.uk> NNTP-Posting-Host: jtec.mauney.com thg@cam-orl.co.uk (Tim Glauert) writes: >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? You're on the right track. Set the scheduling method to RR and put the "worker" at a lower priority than anyone else. But on DEC OSF/1 you'll have to install the real-time kernel before SCHED_RR and SCHED_FIFO are available. -- Jon Mauney jon@mauney.com Mauney Computer Consulting (919) 828-8053 Raleigh NC "Have TGT, will travel."