Re: KSE, libpthread & libthr: almost newbie question



On Fri, Oct 27, 2006 at 02:43:21PM +0100, Nuno Antunes wrote:
On 10/27/06, Ruslan Ermilov <ru@xxxxxxxxxxx> wrote:
KSE == N:M threading

A 1:1 threading (libthr) is much simpler than N:M threading (libpthread),
and thus doesn't require KSE support in the kernel; see kse(2) manpage
for details. Without the KSE option in the kernel, all kse(2) syscalls
will return EOPNOTSUPP, and a lot of code becomes redundant.


IIRC, I can even remember libpthread being originaly named libkse.

It's still named libkse on sparc64 and sun4v.


Cheers,
--
Ruslan Ermilov
ru@xxxxxxxxxxx
FreeBSD committer

Attachment: pgpJGVKf3Wyn5.pgp
Description: PGP signature



Relevant Pages

  • Re: KSE, libpthread & libthr: almost newbie question
    ... A 1:1 threading (libthr) is much simpler than N:M threading, ... and thus doesn't require KSE support in the kernel; ... Without the KSE option in the kernel, ...
    (freebsd-current)
  • Re: Comments on the KSE option
    ... context management paths in the kernel are currently extremely complex. ... Kip's prototypes of breaking out sched_lock as part of the sun4v work have been able to benefit significantly from the reduced complexity of a KSE-free kernel, and it's fairly clear that the task of improving schedule scalability is dramatically simpler when the kernel model for threading is more simple. ...
    (freebsd-current)
  • Re: KSE, libpthread & libthr: almost newbie question
    ... They use KSE in different ways: libpthread uses N:M model and libthr uses 1:1 model, but bot use KSE to work. ... How will be possible to sue these libraries when KSE will be optional, on kernel without KSE?! ... The FreeBSD kernel actually implements a good three different threading models: ... Notice that this isn't just about code complexity, but also about scheduler overhead. ...
    (freebsd-current)
  • Re: program starts with 3 threads
    ... > application which uses the daemon, they both start with 3 processes. ... Regards, Jono. ... With normal versions of the Linux 2.4.x kernel, ... The new Linux 2.6.x kernel has a completely rewritten threading ...
    (Debian-User)
  • Re: how do threads work?
    ... So one might as well move the entire threading into ... The kernel already has most of the threading ... pusher started ... poper started ...
    (comp.os.linux.development.system)