Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: mauney@tophat (Jon Mauney)
Subject: Re: Dumb pthreads question
Date: 30 Sep 94 17:36:59 GMT	[thread overview]
Message-ID: <mauney.780946619@tophat.mauney.com> (raw)
In-Reply-To: 36h1o2$aa7@lyra.csx.cam.ac.uk

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."


  reply	other threads:[~1994-09-30 17:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-09-30 12:53 Dumb pthreads question Tim Glauert
1994-09-30 17:36 ` Jon Mauney [this message]
1994-10-03 20:22   ` Tim Glauert
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox