From owner-freebsd-hackers Sat Feb 15 16:58:54 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id QAA00179 for hackers-outgoing; Sat, 15 Feb 1997 16:58:54 -0800 (PST) Received: from werple.net.au (melb.werple.net.au [203.9.190.18]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id QAA00167 for ; Sat, 15 Feb 1997 16:58:44 -0800 (PST) Received: (qmail 9225 invoked by uid 5); 16 Feb 1997 00:58:41 -0000 MBOX-Line: From jb@freebsd1.cimlogic.com.au Sun Feb 16 11:54:44 1997 Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.7.5/8.7.3) id LAA06913; Sun, 16 Feb 1997 11:54:44 +1100 (EST) From: John Birrell Message-Id: <199702160054.LAA06913@freebsd1.cimlogic.com.au> Subject: Re: Threads question To: jehamby@lightside.com (Jake Hamby) Date: Sun, 16 Feb 1997 11:54:41 +1100 (EST) Cc: hackers@freebsd.org In-Reply-To: <199702152346.PAA05346@lightside.com> from Jake Hamby at "Feb 15, 97 03:46:45 pm" X-Mailer: ELM [version 2.4ME+ PL22 (25)] 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 Jake Hamby wrote: [...] > Anyway, just wanted to solicit any advice on the best thread library to use > for a FreeBSD (or Linux) port of my toolkit, when it is finished. I've > decided to start with a Solaris version, simply because I have access to it > (on SPARC and x86), and it has VERY good documentation on the thread > functions supported, the differences between Solaris and POSIX threads, and > the thread-safeness of each library function. IMHO, this is one area where > FreeBSD is very weak. Comments? Try FreeBSD's libc_r. It is in -current and not built by default. It has all the things you mention except semaphores (which can be implemented with a condition variable and a mutex). Even the non-POSIX suspend/resume functions are there! They were added to support the JDK port. Your comment on thread-safeness for the libc functions is valid, though. 8-( Can't comment about Linux 'cause I've never used it (and due to GPL, never will). > > -- Jake > Regards, -- John Birrell - jb@cimlogic.com.au; jb@netbsd.org CIMlogic Pty Ltd, 119 Cecil Street, South Melbourne Vic 3205, Australia Tel +61 3 9690 6900 Fax +61 3 9690 6650 Mob +61 418 353 137