Machine-translated by Google. Questions are authored in English.
Top

Discussion

In UNIX, which of the following command is used to set the task priority ?

  • A.init
  • B.nice
  • C.kill
  • D.PS

Answer: B

The nice command is used in UNIX to set the priority of a task (process): it starts a command with a changed 'niceness' value, which affects how much CPU time the scheduler gives it, and renice changes the value of a running process.

init is the first process that starts the system, kill sends a signal to a process, usually to end it, and PS lists the processes with their status. None of these three sets the priority of a task.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.