From owner-freebsd-hackers Tue Apr 23 12:43:19 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id MAA29180 for hackers-outgoing; Tue, 23 Apr 1996 12:43:19 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id MAA29172 for ; Tue, 23 Apr 1996 12:43:16 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id MAA20138; Tue, 23 Apr 1996 12:39:10 -0700 From: Terry Lambert Message-Id: <199604231939.MAA20138@phaeton.artisoft.com> Subject: Re: Help! I need info on pthreads. To: kaleb@x.org (Kaleb S. KEITHLEY) Date: Tue, 23 Apr 1996 12:39:09 -0700 (MST) Cc: hackers@freefall.freebsd.org In-Reply-To: <199604231022.GAA03612@exalt.x.org> from "Kaleb S. KEITHLEY" at Apr 23, 96 06:22:52 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > > > I have suddenly been informed that I must convert a significant > > > piece of code to use pthreads. Since FreeBSD will be one of my > > > test vehicles I need to know if the libc_r library under 2.1-stable > > > and/or current is working. > > > > 2.2-current only. It works for me. If it doesn't work for _you_, let > > me know. Watch out for libc functions that aren't re-entrant, though. > > You mean watch out for libc functions that aren't MT-safe. There's a big > difference between being MT-safe and being reentrant. Reentrant means > the function can be called in a signal handler, usually limited to system > calls. MT-safe means the function can be called by more than one thread > at a time. On other systems with threads there are MT-safe functions that > aren't reentrant. Other systems have real threads instead of signal-based context switching. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.