From owner-freebsd-threads@FreeBSD.ORG Sun Jun 29 07:49:04 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81E1D37B401 for ; Sun, 29 Jun 2003 07:49:04 -0700 (PDT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7C444401E for ; Sun, 29 Jun 2003 07:49:03 -0700 (PDT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.8/8.12.1) with ESMTP id h5TEn0Xh008613; Sun, 29 Jun 2003 10:49:02 -0400 (EDT) Date: Sun, 29 Jun 2003 10:49:00 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Petri Helenius In-Reply-To: <001501c33d5c$2ba7ab00$f8d5473e@PETEX31> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-threads@freebsd.org Subject: Re: rtprio and kse X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 Jun 2003 14:49:04 -0000 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