lkml.org 
[lkml]   [1999]   [Aug]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:53    [W:0.144 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site