Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am working on something and I needed to dig inside the implementation of the pthread_create() function of POSIX threads in Linux.

Where can I find the actual location of the pthread.h file or the actual code implementation of pthread_create() in Linux?

share|improve this question
up vote 2 down vote accepted

One of the easiest ways to find any file on most linux systems is to use the locate command

$ locate pthread.h

That being said, the file on my Ubuntu system is located at: /usr/include/pthread.h

share|improve this answer

Try Google Codesearch to find the implementation of pthread_create()

share|improve this answer

You must log in to answer this question.