From owner-freebsd-hackers Sat Feb 15 15:46:10 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id PAA25183 for hackers-outgoing; Sat, 15 Feb 1997 15:46:10 -0800 (PST) Received: from lightside.com (hamby1.lightside.net [207.67.176.17]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id PAA25177 for ; Sat, 15 Feb 1997 15:46:05 -0800 (PST) Received: by lightside.com (SMI-8.6/SMI-SVR4) id PAA05346; Sat, 15 Feb 1997 15:46:45 -0800 Date: Sat, 15 Feb 1997 15:46:45 -0800 From: jehamby@lightside.com (Jake Hamby) Message-Id: <199702152346.PAA05346@lightside.com> To: hackers@freebsd.org Subject: Threads question Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-MD5: 3dTrAtDFx+vtGeKtUsT3Mw== Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk I need a threads package which supports the following operations: create thread exit thread kill thread suspend/resume thread semaphore operations get/set thread priority I'll probably discover some other features which would be nice (for example message ports), but I think everything I need can be implemented on top of the basic functions and either semaphores or mutexes. Anyway, on Solaris I have a choice between POSIX and Solaris threads. The man page for libthread gives a nice summary and comparison between the two. Although I'd like to use POSIX threads for the greater portability, apparently POSIX doesn't offer the option to suspend and resume threads, so I've decided to use Solaris threads. 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? -- Jake