Subject: Re: pthread_attr_setschedpolicy of pthread
To: None <tech-userlevel@netbsd.org>
From: Ian Zagorskih <ianzag@megasignal.com>
List: tech-userlevel
Date: 12/28/2004 18:51:25
On Tuesday 28 December 2004 18:24, Rui Paulo wrote:
> On 2004.12.27 11:46:23 +0000, Nicolas Joly wrote:
> > I think we need both.
> >
> > Currently, a lot of programs use `pthread_attr_setschedpolicy' (like
> > NBCI blast, in my case). It will be great if they can compile out of
> > the box, instead of hacking them.
>
> I'm not aware of the standards, but where does
> pthread_attr_setschedpolicy() come from ? Is it Linux specific ?
> Also, Linux does have pthread_setschedparam().
>
It's in POSIX/RT THREADS now:
http://www.opengroup.org/onlinepubs/009695399/functions/pthread_attr_getschedpolicy.html
// wbr