Windows OS defines the following constants as thread priority:
- THREAD_PRIORITY_IDLE (-15)
- THREAD_PRIORITY_LOWEST (-2)
- THREAD_PRIORITY_BELOW_NORMAL (-1)
- THREAD_PRIORITY_NORMAL (0)
- THREAD_PRIORITY_ABOVE_NORMAL (1)
- THREAD_PRIORITY_HIGHEST (2)
- THREAD_PRIORITY_TIME_CRITICAL (15)
And Linux has sched_get_priority_max() and sched_get_priority_min() to get thread priority range.
Is it possible to have an equivalence between Windows and Linux thread priority values ?