From owner-freebsd-hackers Fri Apr 9 5:13:29 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from fleming.cs.strath.ac.uk (fleming.cs.strath.ac.uk [130.159.196.126]) by hub.freebsd.org (Postfix) with ESMTP id 2B9C714FD3 for ; Fri, 9 Apr 1999 05:13:25 -0700 (PDT) (envelope-from roger@cs.strath.ac.uk) Received: from cs.strath.ac.uk (scary.dmem.strath.ac.uk [130.159.202.5]) by fleming.cs.strath.ac.uk (8.8.8/8.8.8) with ESMTP id NAA07946 Fri, 9 Apr 1999 13:10:28 +0100 (BST) Message-ID: <370DEE5D.53FF9FB7@cs.strath.ac.uk> Date: Fri, 09 Apr 1999 13:11:09 +0100 From: Roger Hardiman Organization: Strathclyde University X-Mailer: Mozilla 4.04 [en] (X11; I; FreeBSD 3.1-STABLE i386) MIME-Version: 1.0 To: Amancio Hasty Cc: John Birrell , dick@tar.com, hackers@FreeBSD.ORG Subject: Re: cc -pthread and -kthread switches References: <199904090931.CAA77141@rah.star-gate.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Amancio was right. This is a Native FreeBSD Kernel Thread issue. I'm not trying to make us into Linux or corrput FreeBSD in any way. Richard (dick@lt.tar.com) has done a great job of getting native FreeBSD kernel threads running on FreeBSD, by porting the linuxthreads (linux ptheads) library to be a Native FreeBSD library. You can take pthreaded code and make it run over both CPUs in my SMP machine using Dicks port of linuxthreads to native freebsd and Luoqi's SMP patches. Userland pthreads make no use of SMP machines at all. The -DLINUXTHREADs is only there to specify the right pthread header files. (If I build userland pthreads, I want the normal header files) (If I build Kernel pthreads, I need different header files, selected by -DLINUXTHREADS) Perhaps it should have been called -DKERNELTHREDS if that makes you feel better. > I think the idea here is to motivate "someone" to write a kernel threads That is what Dick is trying to do. Take a look at http://lt.tar.com > > Yuk. Please don't corrupt FreeBSD with Linux. > > And for those of us who choose to use _FreeBSD_, > > allow us to live in a Linux and Microsoft free zone. I _want_ to run FreeBSD. For years I've been tempted to switch to Linux for SMP pthreads. FreeBSD seems to be in the stone age here. All I want is to use the kernel threads code Dick has produced. And I was looking at perhaps a change to the cc switches to make it easier to select kernel threads or userland threads. Roger To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message