From owner-freebsd-current Sat Oct 31 13:18:57 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA18116 for freebsd-current-outgoing; Sat, 31 Oct 1998 13:18:57 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (castles325.castles.com [208.214.167.25]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA18109 for ; Sat, 31 Oct 1998 13:18:55 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (LOCALHOST [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id NAA00662; Sat, 31 Oct 1998 13:18:12 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810312118.NAA00662@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: John Birrell cc: lists@tar.com, current@FreeBSD.ORG Subject: Re: Kernel threading (was Re: Thread Scheduler bug) In-reply-to: Your message of "Sun, 01 Nov 1998 07:43:04 +1100." <199810312043.HAA10845@cimlogic.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 31 Oct 1998 13:18:12 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Richard Seaman, Jr. wrote: > > If this general approach is of any interest, let me know. > > Kernel threads should use libpthread and libc, not libc_r. You can't mix > kernel thread syscalls with user-thread syscalls because the styles are > incompatible (blocking vs non-blocking). You can't mix kernel thread > scheduling with user-thread scheduling. It doesn't sound like you have > made any attempt to update the user-space knowledge of the running thread. > As a result you will mix all errno codes and all user-space locking. This > is a fundamental issue that needs to be designed, not hacked. It sounds like the two of you should cooperate on it then; Richard has clearly managed to get his head around at least some of the kernel issues, while you're on top of the user-space stuff. This issue calls for constructive cooperation as well as design. 8) -- \\ Sometimes you're ahead, \\ Mike Smith \\ sometimes you're behind. \\ mike@smith.net.au \\ The race is long, and in the \\ msmith@freebsd.org \\ end it's only with yourself. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message