From owner-freebsd-hackers Sun May 18 00:06:08 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA14638 for hackers-outgoing; Sun, 18 May 1997 00:06:08 -0700 (PDT) Received: from freebsd1.cimlogic.com.au ([203.36.2.25]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA14630 for ; Sun, 18 May 1997 00:06:04 -0700 (PDT) Received: (from jb@localhost) by freebsd1.cimlogic.com.au (8.8.5/8.8.5) id RAA00781; Sun, 18 May 1997 17:07:40 GMT From: John Birrell Message-Id: <199705181707.RAA00781@freebsd1.cimlogic.com.au> Subject: Re: GNAT-pthreads integration bugs/questions In-Reply-To: <199705180700.CAA20456@iworks.InterWorks.org> from "Daniel M. Eischen" at "May 18, 97 02:00:19 am" To: deischen@iworks.InterWorks.org (Daniel M. Eischen) Date: Sun, 18 May 1997 17:07:40 +0000 (GMT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (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 Daniel M. Eischen wrote: > Is there any interest in making pthreads with rfork? Or someway to get Yes, there certainly is. It would solve many problems and leave us with one libc plus a small libpthread. We need John Dyson to add what is needed to the existing rfork. 8-) And of course he always has too many things on his plate. 8-( > a real process from a thread? I thought about implementing Ada tasking > using rfork, but it really wants to use pthreads. A couple things I > can't do with rfork (or don't know how to do using other mechanisms) > is to explicitly set the stack size (as in pthread_attr_setstacksize), > mutexes and condition variables (could use SYSV semaphores I suppose), > and the ability to create a key (pthread_key_create) that is specific > to each process - like taskVarAdd() in VxWorks :-) I suspect that some of this will still need to done in user space, even with an rfork implementation. > > Dan Eischen > deischen@iworks.InterWorks.org > Regards, -- John Birrell - jb@cimlogic.com.au; jb@netbsd.org; jb@freebsd.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