From owner-freebsd-hackers Thu Oct 19 15:27:33 1995 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id PAA04405 for hackers-outgoing; Thu, 19 Oct 1995 15:27:33 -0700 Received: from werple.net.au (0@werple.mira.net.au [203.9.190.18]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id PAA04394 for ; Thu, 19 Oct 1995 15:27:19 -0700 Received: from cimaxp1.UUCP (Ucimlogi@localhost) by werple.net.au (8.7/8.7) with UUCP id IAA02052 for hackers@freebsd.org; Fri, 20 Oct 1995 08:22:46 +1000 (EST) Message-Id: <199510192222.IAA02052@werple.net.au> X-Authentication-Warning: werple.net.au: Ucimlogi set sender to cimaxp1!jb using -f Received: by cimaxp1.cimlogic.com.au; (5.65/1.1.8.2/10Sep95-0953AM) id AA31215; Fri, 20 Oct 1995 08:25:28 +1000 From: John Birrell Subject: Re: NetBSD/FreeBSD (pthreads) To: mira!sdsp.mc.xerox.com!leisner@werple.net.au (Marty Leisner) Date: Fri, 20 Oct 1995 08:25:25 +1000 (EST) Cc: hackers@freebsd.org, jb@cimlogic.com.au In-Reply-To: <9510191647.AA10024@gnu.mc.xerox.com> from "Marty Leisner" at Oct 19, 95 09:47:31 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-hackers@freebsd.org Precedence: bulk Marty, > > > While I find the MIT pthreads implementation quite clever, > what I'm really looking for is pthreads within kernel space... About 4 weeks ago I downloaded the MIT pthreads (from sipb.mit.edu:/pub/pthreads). I was looking for POSIX thread functionality that would let us use code that currently works under OSF/1, VxWorks and LynxOS. Until I had a _good_ look at user-space threads, I thought that kernel space threads were the *only* way to go. I've since changed my mind and I think that user-space threads are worthwhile for us. So much so, we're basing a product on them. I'm curious about why you *need* kernel threads. If it's fast context switching you need, then a SIGVTALRM followed by either a longjmp or a sigreturn is pretty quick. If you end up trying to use the MIT threads, watch out! We ended up completely retructuring the code to a more sane (IMHO) implementation. > > > -- > marty > leisner@sdsp.mc.xerox.com > Member of the League for Programming Freedom > > > -- John Birrell CIMlogic Pty Ltd jb@cimlogic.com.au 119 Cecil Street Ph +61 3 9690 9600 South Melbourne Vic 3205 Fax +61 3 9690 6650 Australia Mob +61 18 353 137