View Single Post
Old 01-31-08, 12:36 AM   #1
Registered User
Join Date: Oct 2007
Posts: 17
Default linux library needed for pthread_setaffinity_np


I'm using a quad processor system. I want a program running on my PC having four threads and each of them running on different processors.

I'm using function "pthread_setaffinity_np" for that. while compiling, it gives an error saying "undefined reference to : pthread_setaffinity_np"

Can anyone tell me which library should be included for "pthread_setaffinity_np" ?

Thanks in advance...

tanmay.anjaria is offline   Reply With Quote