Re: pthreads

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Jug,

On 7/31/07, Jug Venkatesh <jv7q@xxxxxxxxxxxxxxx> wrote:
> I've been looking online to try and find the location of the source code
> to the pthread library on fedora, and other than pthread.h, i'm getting

The implementation of the pthread library is called NPTL.
It is part of GNU libc. If you want to read the sources,
download http://ftp.gnu.org/gnu/glibc/glibc-2.6.tar.bz2 and look inside
the nptl/ folder.

> nowhere. Any help would be appreciated. Additionally, can anyone tell me
> how exactly the pthread library performs scheduling, and how it relates
> to the linux scheduler (hopefully, i can understand this better after
> looking at the pthreads source code, so just that info would help)

It doesn't. In Linux, threads are actually processes that share the same
address space. Thus the kernel is responsible for scheduling them just
like all other processes in the system.

Read more about it at:
http://en.wikipedia.org/wiki/Native_POSIX_Thread_Library
http://people.redhat.com/drepper/nptl-design.pdf

BR,
Ohad.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux