From owner-freebsd-threads@FreeBSD.ORG Tue Jul 1 02:23:37 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 2D78437B401; Tue, 1 Jul 2003 02:23:37 -0700 (PDT) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id D77014400B; Tue, 1 Jul 2003 02:23:35 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from PETEX31 (gprs-prointernet-3e47d7f9.mobile.inet.fi [62.71.215.249]) by silver.he.iki.fi (8.12.9/8.11.4) with SMTP id h619NAsL044705; Tue, 1 Jul 2003 12:23:16 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <007601c33fb2$6c5d2c80$f9d7473e@PETEX31> From: "Petri Helenius" To: , "David Xu" References: Date: Tue, 1 Jul 2003 11:21:19 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: freebsd-threads@freebsd.org Subject: Re: rtprio and kse 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: Tue, 01 Jul 2003 09:23:37 -0000 > 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? Pete