I\'m trying to write a semi-portable threading class for a project I\'m working on, and while trying to set the priority of a thread, I came across a conundrum in the pthread wo
The range of priorities you get in Ubuntu (as well as any other Linux-based OS) for SCHED_OTHER is [0,0] which is a valid range. This means all of these non-realtime processes have the same 'priority' and their only difference is in their 'nice' value.
See the nice system call for more info. I am not sure how OpenBSD's scheduler works, but nice() syscall is in POSIX and it should supported in UNIX systems.