rtprio and kse

Daniel Eischen eischen at vigrid.com
Sun Jun 29 07:49:04 PDT 2003


On Sat, 28 Jun 2003, Petri Helenius wrote:
> 
> How does kse and rtprio interact? If a thread calls to set realtime priority
> does that set the priority for all threads, just the threads that happen 
> to be scheduled on that kse or just the thread that made the call?

The rtprio() call affects the KSEG in which the thread runs.
So it is the KSEG that has the realtime priority, and all
threads that run in that KSEG will be affected.  This doesn't
affect other KSEGs, so if you are creating system scope
threads (each has their own KSEG and KSE), they will only
be affected if you call rtprio() from their threads.

-- 
Dan Eischen



More information about the freebsd-threads mailing list