From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 23 04:49:33 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 1A48C16A4CE for ; Sat, 23 Apr 2005 04:49:33 +0000 (GMT) Received: from hotmail.com (bay2-f37.bay2.hotmail.com [65.54.247.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id EEEFD43D1D for ; Sat, 23 Apr 2005 04:49:32 +0000 (GMT) (envelope-from jas_arlerr@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 22 Apr 2005 21:49:32 -0700 Message-ID: Received: from 61.187.54.10 by by2fd.bay2.hotmail.msn.com with HTTP; Sat, 23 Apr 2005 04:49:32 GMT X-Originating-IP: [61.187.54.10] X-Originating-Email: [jas_arlerr@hotmail.com] X-Sender: jas_arlerr@hotmail.com In-Reply-To: <426953C5.9080502@elischer.org> From: "Jas arlerr" To: julian@elischer.org, dleimbac@gmail.com Date: Sat, 23 Apr 2005 04:49:32 +0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed X-OriginalArrivalTime: 23 Apr 2005 04:49:32.0827 (UTC) FILETIME=[D76986B0:01C547BF] X-Mailman-Approved-At: Sat, 23 Apr 2005 12:09:41 +0000 cc: freebsd-hackers@freebsd.org 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: Sat, 23 Apr 2005 04:49:33 -0000 > >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. > > >there has been a 1:1 and an M:N library since 5.2 > Yes. As Julian said, libthread is a 1:1 model, while libkse(now libpthread) is an M:N model. KSE is very interesting, it originates from Anderson's Scheduler Activation. But it solved some problems existed in the SA. IMHO, libkse lacks supports for real-time applications (also due to the nonpreemptive kernel feature). BTW, anybody familar with Linux NPTL (1:1 thread model)? Can libthread take some ideas from it? Regards Jas _________________________________________________________________ 与世界各地的朋友进行交流,免费下载 MSN Messenger: http://messenger.msn.com/cn