Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - nice(): Page 1 of 3 (3 Items)
   
nice()  
According to POSIX, nice() has no effect for FIFO or round-robin
scheduling, and the effect is implementation-defined for other scheduling
algorithms.

Our version of nice() calls getpriority() and setpriority(), which both
return 0 and do nothing else.

According to POSIX, nice() is supposed to return the new nice value - NZERO, but our version always returns 0. I think 
this is correct because nice() isn't actually making the caller any more (or less) nice. Is this a valid interpretation?


There's a PR (# 10714) about changing the behaviour of nice(), but if we already comply to POSIX, I imagine we should 
mark this PR as "no intent to fix" and update our docs to say that nice() has no effect.

Any thoughts on this? Thanks.