In Linux, there is no difference between threads and process. It is
like, a thread is merely a process that shares certain resources with
other processes. Each thread has its own process descriptor and
appears to kernel as a normal process - threads just happen to share
resources, such as an address space, etc

The approach is different in other OS such as Microsoft Windows or Sun
Solaris, which have explicit kernel support for threads. To these
threads are an abstraction to provide a lighter, quicker execution
unit than the heavy process.

Suppose you have a process with four threads. In Windows you will have
one process descriptor that points to all its threads. In Linux you
would have four process descriptors with some sharing between them.

Source: 'Linux Kernel Development' by 'Robert Love'

On May 28, 12:05 am, jagannath <jpdasi...@gmail.com> wrote:
> hi guys,
>        i know that pthread is an user-level thread and an user-level
> can't take the advantage of SMP. Then what is the point of creating
> user-level threads if they can't be scheduled on multiple cores?Please
> clear my doubt which has been hitting me for long.......

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to