Messages in this thread | | | Date | Tue, 17 Aug 1999 17:53:31 +0200 | From | Ferdinand Prantl <> | Subject | Re: Threads in linux. |
| |
On Tue, Aug 17, 1999 at 02:59:35PM +0100, Peter Liniker wrote: > > 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.
process handling functions must have support in kernel of OS (I don't speak about software dispatchers runing as stand-alone program.)
someone use clone() and functions to get and handle process id, someone CreateThread()and simillar bunch of functions ...
> 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.
Cygwin has his own fork() and clone() implementation but it's a lot slower than win32 API for threads. I don't know why ...
Ferda Prantl
---------------------------------- Ferdinand Prantl LVT FF UK e-mail: prantl@ff.cuni.cz www: http://www.ff.cuni.cz/~prantl ICQ: 36302930
- 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/
| |