Take the 2-minute tour ×
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
add comment

2 Answers

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
add comment

Try Google Codesearch to find the implementation of pthread_create()

share|improve this answer
add comment

Your Answer

 
discard

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