LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Linux library reqd. for "pthread_setaffinity_np" (https://www.linuxquestions.org/questions/linux-software-2/linux-library-reqd-for-pthread_setaffinity_np-617568/)

tanmay.anjaria 01-31-2008 12:49 AM

Linux library reqd. for "pthread_setaffinity_np"
 
Hello,

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

reddazz 01-31-2008 01:41 AM

Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.


All times are GMT -5. The time now is 04:10 PM.