From owner-freebsd-hackers Wed Jul 1 13:10:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA12896 for freebsd-hackers-outgoing; Wed, 1 Jul 1998 13:10:16 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from fep1-orange.clear.net.nz (fep1-orange.clear.net.nz [203.97.32.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA12879 for ; Wed, 1 Jul 1998 13:10:11 -0700 (PDT) (envelope-from jabley@clear.co.nz) Received: from buddha.clear.net.nz (buddha.clear.net.nz [192.168.24.106]) by fep1-orange.clear.net.nz (1.5/1.9) with ESMTP id IAA13213; Thu, 2 Jul 1998 08:09:41 +1200 (NZST) Received: from localhost (jabley@localhost) by buddha.clear.net.nz (8.8.8/8.8.8) with SMTP id IAA02124 for ; Thu, 2 Jul 1998 08:09:39 +1200 (NZST) (envelope-from jabley@clear.co.nz) Date: Thu, 2 Jul 1998 08:09:39 +1200 (NZST) From: Joe Abley X-Sender: jabley@buddha.clear.net.nz To: freebsd-hackers@FreeBSD.ORG Subject: pthreads Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi all, Does anybody know the background of posix thread support in FreeBSD? I can't seem to find any docs on the background anywhere... I'm interested in a couple of issues. 1. On Solaris, to compile a pthreaded program, I stick a #define _REENTRANT #include at the top of the source files, and link with -lpthread. With FreeBSD the linking phase is more involved, since I need to exclude the standard C libraries and link with libc_r instead. Why was the decision made to support pthreads in this manner? What benefits does this have over the Solaris way of doing things? 2. Should I really be using the 2.2.6-RELEASE libc_r pthread support, or should I be looking at Chris Provenzano's pmpthreads? I'm by no means any kind of expert on posix threads; I've just been working on some code which compiled but refused to run properly on FreeBSD. Moving the code to Solaris (and removing all the nice BSD networking code which Sun have seen fit not to support on Solaris), it compiled and worked fine, no problems. I'm not asking for help with my code... Just some pointers on the history of pthread support in FreeBSD. Joe -- Joe Abley Tel +64 9 912-4065, Fax +64 9 912-5008 Network Architect, CLEAR Net http://www.clear.net.nz/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message