UNIX Programming and Technical

Q. What do you mean by nice value?

A. Nice value is the value that controls {increments or decrements} the priority of the process. This value that is returned by the nice () system call. The equation for using nice value is:
Priority = (recent CPU usageĀ/constant) + (base- priority) + (nice value)

Read Solution (Total 0)

UNIX Other Question

Q. What are the criteria for choosing a process for swapping into memory from the swap device?

A. The resident time of the processes in the swap device, the priority of the processes and the amount of time the processes had been swapped out.
Q. What are conditions on which deadlock can occur while swapping the processes?

A. All processes in the main memory are asleep.
All ready-to-run processes are swapped out.
There is no space in the swap device for the new incoming process that are swapped out of the main memory. There is no space in the main memory for the new incoming process