Source code of PThread Library?

bits picture bits · Jul 11, 2010 · Viewed 55.2k times · Source

I am trying to find the source code of pthread library. (I guess its a supposed to be a part of Linux source code)

But somehow can't find any good website that has it.

I like this website: http://lxr.linux.no/#linux+v2.6.34.1/ where I usually find what I need. Somehow pthread source is not searchable. Anyway, I wanted to mention that I need a link to a browsable (and searchable) website like that one.

Websites for browsing linux source can be a matter of personal taste. So all links to the pthread source are welcome.

Most probably I will end up bookmarking all of them, look thru them, and then accept the best answer.

Answer

caf picture caf · Jul 12, 2010

pthreads are implemented on Linux in libc. The usual libc is glibc - the glibc pthreads implementation is called NPTL, and the source is available in gitweb.