Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Jul 2003 09:30:04 -0400 (EDT)
From:      Daniel Eischen <eischen@vigrid.com>
To:        Petri Helenius <pete@he.iki.fi>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: rtprio and kse
Message-ID:  <Pine.GSO.4.10.10307010922060.10319-100000@pcnet5.pcnet.com>
In-Reply-To: <007601c33fb2$6c5d2c80$f9d7473e@PETEX31>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 1 Jul 2003, Petri Helenius wrote:
> > It is legitimate to want a single (or set) of threads to
> > have real-time priority and not the others.  Since the
> > priority is in the KSEG, this is possible to do without
> > fork()ing.
> > 
> > Dan Eischen
> > 
> So to summarize, in order to achieve rtprio for one of the ~dozen threads
> in the process, winthout affecting the rest of the threads in the same process,
> set PTHREAD_SCOPE_SYSTEM when creating the thread
> and ask for rtprio in the thread after it has started?

I don't understand.  Do you want all threads in the process
to be affected by rtprio()?  Or are you saying there are
more than 12 threads in the process, but you only want 
rtprio() to affect those 12 threads?

As I've said before, rtprio() affects the thread's calling
KSEG.  Threads created with scope system each get their own
KSEG.  Threads created with scope process all run in the
same KSEG.  Threads never migrate between KSEGs.  That's
all you need to know.  Do with it what you will.

-- 
Dan Eischen



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.10.10307010922060.10319-100000>