Answer the question
In order to leave comments, you need to log in
How to set process priorities in Linux?
Two tasks, A and B, are needed to do the same amount of work. But task A has a higher priority and needs more CPU time. Explain how this can be achieved in each of the Linux schedulers described in this chapter, in O(1) and in CFS.
Answer the question
In order to leave comments, you need to log in
But task A has a higher priority and needs more CPU time.
$ nice -n1 A
...
$ nice -n19 B
...
https://en.wikipedia.org/wiki/Nice
some priority levels can only be set as root.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question