Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

SCHED_OTHER, and priorities?

priorities
0
10 Posted

SCHED_OTHER, and priorities?

0
10

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123