Re: Kernel threads useable by mortals?

Larry McVoy (lm@neteng.engr.sgi.com)
19 Apr 1996 03:53:06 GMT


Alan Cox (alan@cymru.net) wrote:
: > I guess your best bet would be pthreads, but I don't know anything about
: > that, so I'll leave it for someone else to answer.

: The right answer is to make pthreads and/or lwp try to use clone.

Yes, that is the right answer. I've heard lately that Sun's kernel threads
(LWPs) actually context switch slower than two unrelated processes (unconfirmed
but it wouldn't surprise that much; I'd certainly expect kthreads to be the
same as processes).

Use clone(), it's cool. It's plan9ish. It's less filling. It tastes great.
It doesn't add a bunch of kernel bloat we don't need. You feel more studly
when you are done. You'll have done the world a good turn. Really.

Later,

--
---
Larry McVoy     lm@sgi.com     http://reality.sgi.com/lm     (415) 933-1804
Copyright 1996, all rights reserved.   Microsoft Network is prohibited from
redistributing this work in any form, in whole or in part without license.
License to distribute this work is available to Microsoft at $500.
Transmission without permission constitutes an agreement to these terms.