Specify lower or higher priority for the thread(s) running in an execution context. The advantage being that the OS can decide the schedule some threads less often or more often than others, or choose to schedule them on a low power CPU core or an efficient CPU core (e.g. big.LITTLE CPU or equivalent).
By default, threads will run with the default priority for the current process (i.e. do nothing). When specified, it should increase or decrease the thread priority to the OS.
The priority might be changed at any time, not just when creating the execution context, if supported by the OS. The same priority shall apply to all the threads in the execution context. One shall use different contexts to have different priorities.
TODO: investigate OS capabilities (POSIX, Windows, Linux, *BSD, ...).
Specify lower or higher priority for the thread(s) running in an execution context. The advantage being that the OS can decide the schedule some threads less often or more often than others, or choose to schedule them on a low power CPU core or an efficient CPU core (e.g. big.LITTLE CPU or equivalent).
By default, threads will run with the default priority for the current process (i.e. do nothing). When specified, it should increase or decrease the thread priority to the OS.
The priority might be changed at any time, not just when creating the execution context, if supported by the OS. The same priority shall apply to all the threads in the execution context. One shall use different contexts to have different priorities.
TODO: investigate OS capabilities (POSIX, Windows, Linux, *BSD, ...).