Results 1 to 2 of 2
hi
I am using the sched_setaffinity function to allot each thread to specific processor. I am getting the following warning.
"implicit decelaration of function 'sched_setaffinity'
I have included the "sched.h" ...
- 09-12-2007 #1Just Joined!
- Join Date
- Oct 2006
- Location
- Pakistan
- Posts
- 4
setting processor affinity
hi
I am using the sched_setaffinity function to allot each thread to specific processor. I am getting the following warning.
"implicit decelaration of function 'sched_setaffinity'
I have included the "sched.h" header file. I am using Linux red hat 4 enterprise AS and gcc 3.4.6.
How can i overcome this warning.
Is there any external library for this like -lpthread and -lm.
Can anyone help me on this
Thanks
- 09-14-2007 #2Linux User
- Join Date
- Jul 2004
- Location
- Poland
- Posts
- 368
"I don't know what I'm running from
And I don't know where I'm running to
There's something deep and strange inside of me I see"


Reply With Quote
