Reputation: 111
I was wondering how many levels of thread priorities are there?. Is it dependent on the OS that uses posix ?
Upvotes: 0
Views: 49
Reputation: 27552
It depends on the implementation used by your OS. You should use
int sched_get_priority_min(int policy);
int sched_get_priority_max(int policy);
to find the range for a particular scheduling policy on your platform.
Upvotes: 1