The code setting thread priority doesn't work without changing the scheduling policy as thread priorities are simply ignored when using the default SCHED_OTHER (at least under Linux and NetBSD, but probably other systems too). See #18195.
The code setting thread priority doesn't work without changing the scheduling policy as thread priorities are simply ignored when using the default SCHED_OTHER (at least under Linux and NetBSD, but probably other systems too). See #18195.