Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

2 Answers 2

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.