Page 1 of 1
About Question enthuware.ocpjp.v7.2.1323 :
Posted: Tue Sep 03, 2013 5:40 am
by The_Nick
Hi everybody,
From the explanation of this question I would like to clarify:
Although MIN_PRIORITY and MAX_PRIORITY are 1 and 10 respectively, you cannot assume this.
Why we cannot assume it?
Thanks in advance.
The_Nick.
Re: About Question enthuware.ocpjp.v7.2.1323 :
Posted: Tue Sep 03, 2013 11:10 am
by admin
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.
Re: About Question enthuware.ocpjp.v7.2.1323 :
Posted: Fri Sep 13, 2013 2:31 am
by The_Nick
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.
Re: About Question enthuware.ocpjp.v7.2.1323 :
Posted: Fri Sep 13, 2013 8:40 pm
by admin
Yes, OSes do have a concept of priority but they may use it differently.
HTH,
Paul.