From owner-freebsd-hackers Mon Oct 4 7:12:33 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp02.wxs.nl (smtp02.wxs.nl [195.121.6.60]) by hub.freebsd.org (Postfix) with ESMTP id A517E14CE8 for ; Mon, 4 Oct 1999 07:12:19 -0700 (PDT) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org ([195.121.196.47]) by smtp02.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAH6D4E; Mon, 4 Oct 1999 16:12:13 +0200 Received: (from asmodai@localhost) by daemon.ninth-circle.org (8.9.3/8.9.3) id QAA65465; Mon, 4 Oct 1999 16:06:42 +0200 (CEST) (envelope-from asmodai) Date: Mon, 4 Oct 1999 16:06:42 +0200 From: Jeroen Ruigrok/Asmodai To: Daniel Eischen Cc: shocking@prth.pgs.com, hackers@FreeBSD.ORG, nordwick@scam.xcf.berkeley.edu Subject: On pthreads [Was: Re: I was accepted to LokiHack '99 at Atlanta Linux Showcase] Message-ID: <19991004160641.H63946@daemon.ninth-circle.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre3i In-Reply-To: <199910041054.GAA14658@pcnet1.pcnet.com> Organisation: Ninth-Circle Enterprises Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On [19991004 13:04], Daniel Eischen (eischen@vigrid.com) wrote: >> Do you mean pthreads? >> >> If so, we still do not have a pthread_cancel in our libc_r which could >> greatly make things harder to implement. I think OpenBSD has one and we >> might do well to look at that one. > >We could implement pthread_cancel rather easily (I have some crufty >patches lying around somewhere to do it), but it wouldn't be nearly >POSIX compliant. Some non-cancellable routines would be cancellable, >and vice-versa I think too. We need to make a start somewhere, since no pthread_cancel makes us even less compliant =P >We need to take a different approach to our threads library in the >form of scheduler activations. I _can_ hack in the pthread_cancel >routines into our current libc_r, but I'd much rather spend my >time looking into scheduler activations which will better solve >the problem. I neither have the docs, experience nor time to be of any help save that I can try patches/compilations for you. I found these people in reference to libc_r whom could prove helpful or insightful for your endeavours: John Birrell Peter Dufault Good luck. -- Jeroen Ruigrok van der Werven/Asmodai asmodai(at)wxs.nl The BSD Programmer's Documentation Project Network/Security Specialist BSD: Technical excellence at its best Seek, and ye shall find; knock, and it shall be opened unto you. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message