Subject: Re: change thread priorities
To: Paul Winder <Paul.Winder@tadpole.com>
From: Rui Paulo <email@example.com>
Date: 05/18/2006 14:13:33
On 2006.05.18 11:20:35 +0100, Paul Winder wrote:
> I have a multithreaded application and I want to have some of the
> threads run at different priorities. I try:
> pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);
> param.sched_priority = 10;
> pthread_attr_setschedparam(&attr, ¶m);
> The pthread_attr_setschedparam() call always returns EINVAL unless I set
> sched_priority to 0!
> I also tried adding a call to:
> pthread_attr_setschedpolicy(&attr, SCHED_RR);
> before pthread_attr_setschedparam(), but thats gets ENOTSUP.
> I'm running current.
> Does NetBSD support this?
I don't think so.
const struct sched_param *param)
if (param == NULL)
if (param->sched_priority != 0)
if (policy != SCHED_OTHER)
We should probably have a document to describe what's missing.
-- Rui Paulo