Date: Tue, 1 Jul 2003 06:15:28 +0800 From: "David Xu" <davidxu@freebsd.org> To: <deischen@freebsd.org>, "Terry Lambert" <tlambert2@mindspring.com> Cc: freebsd-threads@freebsd.org Subject: Re: rtprio and kse Message-ID: <002501c33f55$1ed32530$0701a8c0@tiger> References: <Pine.GSO.4.10.10306301558130.28213-100000@pcnet5.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----=20 From: "Daniel Eischen" <eischen@vigrid.com> To: "Terry Lambert" <tlambert2@mindspring.com> Cc: <freebsd-threads@freebsd.org> Sent: Tuesday, July 01, 2003 4:03 AM Subject: Re: rtprio and kse > 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, > > >=20 > > > 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. > >=20 > > I'd expect the creation of a seperate KSEG, so that only the thread > > that made the request gets the priority boost. >=20 > 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. > rtprio means he want to exclusively use CPU, not only between threads in process but also between threads in system, I can not image a guy is stilling using PTHREAD_SCOPE_PROCESS but not PTHREAD_SCOPE_SYSTEM to define a competition scope in process but not system wide, if he want to be rtprio in a process but not system scope, I think he'd use pthread_setprio(), otherwise setting thread to PTHREAD_SCOPE_SYSTEM is necessary. > --=20 > Dan Eischen >=20 > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to = "freebsd-threads-unsubscribe@freebsd.org" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002501c33f55$1ed32530$0701a8c0>