From owner-freebsd-threads@FreeBSD.ORG Mon Feb 4 23:05:59 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C147316A420; Mon, 4 Feb 2008 23:05:59 +0000 (UTC) (envelope-from karl.h.beckers@gmx.net) Received: from grotesk.our-isp.org (www.our-isp.org [82.165.43.21]) by mx1.freebsd.org (Postfix) with ESMTP id 8458213C45A; Mon, 4 Feb 2008 23:05:59 +0000 (UTC) (envelope-from karl.h.beckers@gmx.net) Received: from [192.168.1.5] (pD95FE861.dip.t-dialin.net [217.95.232.97]) by grotesk.our-isp.org (Postfix) with ESMTP id EC3FD25E22; Tue, 5 Feb 2008 00:05:53 +0100 (CET) From: "Karl H. Beckers" To: John Baldwin In-Reply-To: <200802041456.30785.jhb@freebsd.org> References: <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org> <58004.192.9.112.196.1202145786.squirrel@www.our-isp.org> <200802041456.30785.jhb@freebsd.org> Content-Type: text/plain Date: Tue, 05 Feb 2008 00:05:51 +0100 Message-Id: <1202166351.6212.10.camel@hosaka> Mime-Version: 1.0 X-Mailer: Evolution 2.12.1 Content-Transfer-Encoding: 7bit Cc: Daniel Eischen , Dag-Erling =?ISO-8859-1?Q?Sm=C3=B8rgrav?= , freebsd-threads@freebsd.org Subject: Re: threading in FreeBSD (acx_pthreads) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 23:05:59 -0000 Am Montag, den 04.02.2008, 14:56 -0500 schrieb John Baldwin: [...] > > And I take it that (c) is what your ports system is doing and the > > discussion is around whether that's the right thing to do? > > Just -pthread, no -lc_r. On 4.x -pthread expands to -D_REENTRANT -lc_r (or > something like that). On 5.x+ -pthread expands to -lpthread. IOW, -pthread > always expands to the appropriate system default. If you want to use libthr > on 6.x then you can either explicitly say -lthr instead of -pthread or rename > libpthread to libkse and symlink libpthread to libthr. (Or use libmap.conf > to map libpthread to libthr, etc.). > > Also, FWIW DES, at work when folks did benchmarks for Java stuff on 6.x, > libkse had better performance than libthr. Granted, Java is a bit more of an > odd benchmark b/c it is thread happy and thus more suited to a M:N model than > most other threading workloads. > OK, that clears some of that up. Any idea what the original author of acx_pthreads has meant by -lkthread and lthread? (Am trying to ask him himself, but his spamassassin doesn't like me ;) ) Thanks, Karl.