If both pthread_create and fork are wrappers over the clone system call
is there any advantage of using threads over processes

Kedar Patankar wrote:
> 
> Hi,
> 
> > Can any compare Linux threads with the Unix threads, how robust Linux
> > threads are
> 
>         I suppose by "unix" threads you mean "posix threads". Linux has a
> decent and fairly robust implementation of posix threads, implemented
> partly in the kernel as the "clone" system call, and a userland library
> libpthread that deals with the nitty-grity of clone and lower level
> details and provides you with a posix-thread interface.
>         For more info do man pthread-create and friends. If you are using
> any distro based on glibc2.1 (RH6.x, Suse 6.2+) then you already have
> libpthread installed. For earlier glibc's you may have to go and get
> libpthread and compile/install it.
>         Other than that just pick up any standard book on posix-threads
> and it should apply to gnu/linux implementation of threads.
> 
>         Regards,
>         Kedar.
> ----------------------------------------------------------------
> Don't worry over what other people are thinking about you.
> They're too busy worrying over what you are thinking about them.
> 
> -----------------------------------------------------------------------
> For more information on the LIH mailing list see:
> http://lists.linux-india.org/lists/LIH

-- 
Rakesh Agarwal 
Systems Engineer
Wipro Tecnologies
72, Electronics City
Bangalore-561229
[EMAIL PROTECTED]
91-80-8520408 Extn-1158

-----------------------------------------------------------------------
LIH is all for free speech.  But it was created for a purpose - to help
people discuss issues about installing and running Linux.  If your
messages are counterproductive to this purpose, your privileges to
submit messages can and will be revoked.

Reply via email to