Re: Threads in linux.

Peter Liniker (pl198@doc.ic.ac.uk)
Tue, 17 Aug 1999 14:59:35 +0100 (BST)


>This morning I went to a work-interview. Unfortunately, in that company
>they use WinNT. But, well, they had a good opinion about linux, blah,
>blah, blah...
>
>But the director says me that linux doesn't implement threads, is this
>true?. He said that threads in linux are implemented by a library, not at
>kernel-level.

Linux does not have kernel-level threads, this is true. There is a
'clone()' kernel call which can be used to implement threads in user
space in a library (e.g. libpthreads with glibc2). This threading is as
good as the windows threading in my experience.

Reason for this implementation is that Linux context-switches are very
fast, so it made more sense to keep the context-switching code than
re-write it as a 2 level process model for processes and threads.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/