From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 22 19:43:02 2005 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C26DD16A4CE for ; Fri, 22 Apr 2005 19:43:02 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B15643D2F for ; Fri, 22 Apr 2005 19:43:02 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 4B0CA7A41E; Fri, 22 Apr 2005 12:43:02 -0700 (PDT) Message-ID: <426953C5.9080502@elischer.org> Date: Fri, 22 Apr 2005 12:43:01 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en, hu MIME-Version: 1.0 To: David Leimbach References: <5bbfe7d40504220842578b2d2d@mail.gmail.com> In-Reply-To: <5bbfe7d40504220842578b2d2d@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD Hackers Subject: Re: libthread 1:1 threads X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Apr 2005 19:43:02 -0000 David Leimbach wrote: >Perhaps David Xu could clue me in a bit more :) > >I just got around to reading the status report for FreeBSD and the 1:1 >threading caught my eye. > >I'm not terribly familiar with FreeBSD's KSE based threading but >rather than adding a new system call [which may be ok... though I've >worked on systems where a minimal set of system calls is the desired >approach.. usually microkernels] would it be possible to add KSEs to a >task using rfork()? > > KSE and 1:1 threading are different things. One creatres kernel threads on demand and the other keeps the kernel threads all the time the user thread exists. rfork is not the same.. it creates a new process context. that is what Linux does. it is also what we did before when running the the linuxthreads package. KSE and 1:1 use a lot of the same kernel changes and entities. Which one survives will be judged in time. >Maybe I've just been playing around with Plan 9 too much lately :) > >Anyway, I like that there will be a 1:1 threading library and if I had >more free time and wasn't working on other projects I'd be more than >willing to help test and work on/with this. > > there has been a 1:1 and an M:N library since 5.2 >Still, very very cool :) > >Dave >_______________________________________________ >freebsd-hackers@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" > >