* Dumb pthreads question
@ 1994-09-30 12:53 Tim Glauert
1994-09-30 17:36 ` Jon Mauney
0 siblings, 1 reply; 3+ messages in thread
From: Tim Glauert @ 1994-09-30 12:53 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Dumb pthreads question
1994-09-30 12:53 Dumb pthreads question Tim Glauert
@ 1994-09-30 17:36 ` Jon Mauney
1994-10-03 20:22 ` Tim Glauert
0 siblings, 1 reply; 3+ messages in thread
From: Jon Mauney @ 1994-09-30 17:36 UTC (permalink / raw)
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."
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Dumb pthreads question
1994-09-30 17:36 ` Jon Mauney
@ 1994-10-03 20:22 ` Tim Glauert
0 siblings, 0 replies; 3+ messages in thread
From: Tim Glauert @ 1994-10-03 20:22 UTC (permalink / raw)
In article <mauney.780946619@tophat.mauney.com>, mauney@tophat (Jon Mauney) writes:
|> But on DEC OSF/1 you'll have to install the real-time kernel before
|> SCHED_RR and SCHED_FIFO are available.
Thanks, that's just the answer I was looking for.
Now, the next question is ... how do I install the real-time kernel? :-)
[ actually, I can see a few RT_*** options is the kernel conf file ]
More to the point, will this affect the performance of the system and,
if so, by how much?
Tim.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1994-10-03 20:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-09-30 12:53 Dumb pthreads question Tim Glauert
1994-09-30 17:36 ` Jon Mauney
1994-10-03 20:22 ` Tim Glauert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox