rtprio and kse

Daniel Eischen eischen at vigrid.com
Mon Jun 30 13:03:42 PDT 2003


On Mon, 30 Jun 2003, Terry Lambert wrote:
> Daniel Eischen wrote:
> > On Mon, 30 Jun 2003, Petri Helenius wrote:
> > > So if I interpret this correctly, to achieve the "expected" result,
> > 
> > What is the expected result?  I expect the expected result
> > to be exactly the way that libkse works.  If you were to
> > do the same thing in Solaris (pthreads), it would behave
> > just like libkse works: it affects the LWP, not the thread,
> > so any threads running in the LWP would benefit from
> > the priority change.
> 
> I'd expect the creation of a seperate KSEG, so that only the thread
> that made the request gets the priority boost.

Obviously you're expectations are not correct :-)  Aside from
breaking POSIX (a scope process thread being silently converted
to a scope system thread), rtprio() is a system call and
affects the kernel priority.

-- 
Dan Eischen



More information about the freebsd-threads mailing list