From owner-freebsd-threads@FreeBSD.ORG Sat May 1 08:45:28 2004 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 9721816A4ED for ; Sat, 1 May 2004 08:45:28 -0700 (PDT) Received: from rms04.rommon.net (rms04.rommon.net [212.54.2.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8A85043D4C for ; Sat, 1 May 2004 08:45:27 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (h91.vuokselantie10.fi [193.64.42.145]) by rms04.rommon.net (8.12.10/8.12.9) with ESMTP id i41FjPmo020418; Sat, 1 May 2004 18:45:25 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <4093C611.40600@he.iki.fi> Date: Sat, 01 May 2004 18:45:21 +0300 From: Petri Helenius User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Daniel Eischen References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-threads@freebsd.org Subject: Re: system priorities X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 15:45:28 -0000 Daniel Eischen wrote: >>This sounds like a bug. Could it change the KSEG which called the rtprio >>so there would be some deterministic behaviour to the rtprio if used in >>threaded program? So I take it from this that rtprio is also broken for >>libthr? >> >> > >Yes. > > > Can and should it be fixed? > >The Solaris priocntl() lets you set/get: > > P_LWPID > The id argument is an LWP ID. The priocntl function > applies to the LWP with the specified ID within the > calling process. > > > Where would I get the "P_LWPID"? I´m not sure it's a good idea to expose the kse structure to an application using pthreads. Pete