Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Apr 2005 04:49:32 +0000
From:      "Jas arlerr" <jas_arlerr@hotmail.com>
To:        julian@elischer.org, dleimbac@gmail.com
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: libthread 1:1 threads
Message-ID:  <BAY2-F37F0FB21CECB0A135004F4F22E0@phx.gbl>
In-Reply-To: <426953C5.9080502@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help


>
>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 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY2-F37F0FB21CECB0A135004F4F22E0>