From owner-freebsd-current Thu Oct 29 14:47:12 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA05248 for freebsd-current-outgoing; Thu, 29 Oct 1998 14:47:12 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from dingo.cdrom.com (dingo.cdrom.com [204.216.28.145]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA05230 for ; Thu, 29 Oct 1998 14:47:07 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Received: from dingo.cdrom.com (localhost.cdrom.com [127.0.0.1]) by dingo.cdrom.com (8.9.1/8.8.8) with ESMTP id OAA00372; Thu, 29 Oct 1998 14:46:15 -0800 (PST) (envelope-from mike@dingo.cdrom.com) Message-Id: <199810292246.OAA00372@dingo.cdrom.com> X-Mailer: exmh version 2.0.2 2/24/98 To: "Richard Seaman, Jr." cc: "current@FreeBSD.ORG" , "eischen@vigrid.com" , "info@highwind.com" Subject: Kernel threading (was Re: Thread Scheduler bug) In-reply-to: Your message of "Thu, 29 Oct 1998 10:25:02 EST." <199810291625.KAA14241@ns.tar.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 29 Oct 1998 14:46:14 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Thu, 29 Oct 1998 11:10:06 -0500 (EST), Daniel Eischen wrote: > Of course, it we had kernel threads, the pthreads code would be > a *lot* simpler and maybe less prone to bugs, the kernel would > do the preemption for us, and context switches would be much > faster than the current user thread implementation. :) > > I've been poking around in the code, and I'd guess that a > uniprocessor kernel threads implementation wouldn't involve > all that much work. However, I understand there's are fair > amount of kernel work that needs to be done for SMP kernel > threads. My suggestion to you: get started. Once you run into the SMP-related issues, you'll find that there are people that can help you. But if you wait for an SMP-kernel-thread-guru to materialise from nowhere, we're never going to get anywhere. -- \\ 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