Ideally, you should not work with the actual values because they may change. It is always better to use the name of the constant.
Further, it really depends on the OS. If you set a priority to say 10, but if the OS's max thread priority is only 5, then there may be a problem. So it is better to set the priority using MAX_PRIORITY instead of 10.
If the values of MAX and MIN_PRIORITY can vary depending on the operating system. Does it mean that it's mapped directly to the OS scheduler? if that is true, does it exist a concept of priority in OS schedulers?
Thanks in advance.
The_Nick.