From owner-freebsd-threads@FreeBSD.ORG Sun Jul 18 05:40:58 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 C793C16A4CE for ; Sun, 18 Jul 2004 05:40:58 +0000 (GMT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 82CC243D2F for ; Sun, 18 Jul 2004 05:40:58 +0000 (GMT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.11/8.12.11) with ESMTP id i6I5eVJk018402 for ; Sun, 18 Jul 2004 01:40:31 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)i6I5eV6D018399 for ; Sun, 18 Jul 2004 01:40:31 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Sun, 18 Jul 2004 01:40:31 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: threads@FreeBSD.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: A way to build and install libpthread as 1:1 as well as M:N? 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: Sun, 18 Jul 2004 05:40:58 -0000 I'm doing some stability and performance testing as part of the network stack locking work. I'd like a way to easily plug and play the configuration of libpthread at run-time (although restarting apps is fine, rebooting is less preferable, as is actually rebuilding!). It looks like right now if I want to switch the operating mode of libpthread to 1:1, I have to recompile it with different compile options and have a separate library floating around that I plug. Could we arrange for it to be a runtime switch of some sort (perhaps read once when the app starts), or build the library both ways by default and intall with different names? Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research