From owner-freebsd-threads@FreeBSD.ORG Mon Jun 30 07:22:32 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 4F9AB37B401; Mon, 30 Jun 2003 07:22:32 -0700 (PDT) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id DA5DD43FEA; Mon, 30 Jun 2003 07:22:30 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from PETEX31 (gprs-prointernet-3e47d64c.mobile.inet.fi [62.71.214.76]) by silver.he.iki.fi (8.12.9/8.11.4) with SMTP id h5UEM2sL037724; Mon, 30 Jun 2003 17:22:08 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <019601c33f13$015daa30$44d5473e@PETEX31> From: "Petri Helenius" To: "Julian Elischer" , "Jeff Roberson" References: Date: Mon, 30 Jun 2003 11:22:03 +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: deischen@freebsd.org 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: Mon, 30 Jun 2003 14:22:32 -0000 > > Theoretically any process with rt priority can monopolise the CPU if it > spins, regardless of whether it's threaded or not.. > > Is not that what having RT-priority means? Yes, but in non-threaded environment with multiple processes competing for CPU libc is not expected to have locks. In threaded environment it does have them around things like malloc. My concern is the realtime thread spinlocking waiting for a lock which is held somewhere which does not get scheduled. These locks are not visible to the appliation and thus one must either put additional mutexes around them or know that libc stuff is rtprio-thread-safe. Pete