pthread.h

Hi All,

   I have an application tha uses <pthread.h> file. I do not have that file on my system. Can anybody give it to me... u can paste the code (if it not too big) here or you can mail it to ananth_nidhi@yahoo.com. Or u can also tell me where I can download it...

thxalot
AK.
ananthuAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

shajithchandranCommented:
Tell me what error r u getting

Are u working on linux.
U might be getting error like undefined reference. If yes then complie ur code this way

cc mythread.c -pthread

shajithchandranCommented:
>> cc mythread.c -pthread
sorry typo error
use  cc mythread.c -lpthread
norsethomasCommented:

Just download pthread.h doesnt work, especially if you don't
have the library. I guess you dont use any unix like system,
but rather Windows and VS, eh ?

In this case you have to download the freeware/sharedware
pthread Version that is available in the net?

Thomas
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

brettmjohnsonCommented:
You did not mention which OS you were using.

pthread.h is VERY operating system specific.  Randomly downloading one from
the internet or some other OS won't work.  You must make sure that your OS
supports the POSIX threading model and that the appropriate libraries are
installed.


autoasmCommented:
You should download a pthread lib.

If you are using linux, linux platform has included pthread lib.

I think you are developing on win32 platform, so you should download pthread lib for windows

MafaldaCommented:
You can obtain the pthreads library from ftp://sources.redhat.com/pub/pthreads-win32/dll-latest

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
tinchosCommented:
No comment has been added lately, so it's time to clean up this TA.
I will leave the following recommendation for this question in the Cleanup topic area:

Accept: Mafalda {http:#9248199}

Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

Tinchos
EE Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C++

From novice to tech pro — start learning today.