Unix Interview Questions and Answers
Related differences
Ques 66. What are the criteria for choosing a process for swapping into memory from the swap device?
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.
Ques 67. What are the criteria for choosing a process for swapping out of the memory to the swap device?
The process?s memory resident time,
Priority of the process and
The nice value.
Ques 68. What do you mean by nice value?
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) Only the administrator can supply the nice value. The nice () system call works for the running process only. Nice value of one process cannot affect the nice value of the other process.
Ques 69. What are conditions on which deadlock can occur while swapping the processes?
</SPAN>
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.
Ques 70. What are conditions for a machine to support Demand Paging?
Memory architecture must based on Pages,
The machine must support the ?restartable? instructions.
Most helpful rated by users:
- How are devices represented in UNIX?
- What is 'inode'?
- What difference between cmp and diff commands?
- Explain the steps that a shell follows while processing a command.
- Brief about the directory representation in UNIX