SCHED_OTHER, and priorities?
Dale Stanbrough wrote: > Patrick TJ McPhee wrote: > > > % thinking about them. I simply wanted to know if, given two threads that > > % are available to run with different priorities, will SCHED_OTHER > > % -always- choose the higher priority thread. Also will SCHED_OTHER > > % -never- preempt a higher priority thread simply to run one of lower > > % priority? > > > > SCHED_OTHER does not specify any particular scheduling policy. The > > behaviour will vary from system to system. > > No it doesn’t have to. There could be a part of the POSIX reference that > says something like > > “Under no circumstances should any scheduling policy preempt a > higher priority thread to run a lower priority thread”. There IS, for the realtime priorities that are defined by POSIX. But the whole point of SCHED_OTHER (and for many good reasons) is to provide a “standard name” for a policy that doesn’t necessarily follow any of the POSIX rules. > However it seems from other people’s posting that there is n