From owner-freebsd-current Sat Oct 31 13:40:09 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA20721 for freebsd-current-outgoing; Sat, 31 Oct 1998 13:40:09 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA20713 for ; Sat, 31 Oct 1998 13:40:04 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.1/8.9.1) id IAA11039; Sun, 1 Nov 1998 08:47:34 +1100 (EST) (envelope-from jb) From: John Birrell Message-Id: <199810312147.IAA11039@cimlogic.com.au> Subject: Re: Kernel threading (was Re: Thread Scheduler bug) In-Reply-To: <199810312126.PAA23692@ns.tar.com> from "Richard Seaman, Jr." at "Oct 31, 98 03:26:50 pm" To: lists@tar.com Date: Sun, 1 Nov 1998 08:47:34 +1100 (EST) Cc: jb@cimlogic.com.au, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Richard Seaman, Jr. wrote: > Agreed, sort of. I don't use libc_r. If you're going to implement > deferred cancellation points, I think you still need to wrap some > syscalls, so you still need to generate a separate libc somewhere. > The "kernel" syscalls drop into libpthread, in a manner analagous > to what happens in libc_r, but the wrappers are different, and the > syscalls that are wrapped are different. If you wrapper the syscalls, you get compatibility problems. If the syscalls block in the kernel, then that's where thay should be cancelled. > Well, the user-space knowledge of the running thread comes from pthread_self, > which in the case I've implemented this comes from the code John Dyson > provided to the list a while back. errno codes are returned on the > thread stack, if I understand his code. Is that the user LDT implementation? -- John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/ CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message