libthread 1:1 threads

Jas arlerr jas_arlerr at hotmail.com
Fri Apr 22 21:49:33 PDT 2005



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



More information about the freebsd-hackers mailing list