system priorities

Petri Helenius pete at he.iki.fi
Sat May 1 08:45:28 PDT 2004


Daniel Eischen wrote:

>>This sounds like a bug. Could it change the KSEG which called the rtprio 
>>so there would be some deterministic behaviour to the rtprio if used in 
>>threaded program? So I take it from this that rtprio is also broken for 
>>libthr?
>>    
>>
>
>Yes.
>
>  
>
Can and should it be fixed?

>
>The Solaris priocntl() lets you set/get:
>
>     P_LWPID
>           The id argument is an LWP ID.  The  priocntl  function
>           applies  to  the  LWP with the specified ID within the
>           calling process.
>
>    
>
Where would I get the "P_LWPID"? I´m not sure it's a good idea to expose 
the kse structure to an application using pthreads.

Pete



More information about the freebsd-threads mailing list