Operating System-Unix [3i Infotech Placement]: Sample Questions 7 - 9 of 78
Glide to success with Doorsteptutor material for competitive exams : get questions, notes, tests, video lectures and more- for all subjects of your exam.
Question 7
Explanation
- On a swap device and not in memory.
- On the free page list in the main memory.
- In an executable file.
- Marked “demand zero” .
- Marked “demand fill” .
Question 8
Explanation
- fork ()
- Create a new process.
- exec ()
- Execute a new program in a process
- wait ()
- Wait until a created process completes its execution
- exit ()
- Exit from a process execution
- getpid ()
- Get a process identifier of the current process.
- getppid ()
- Get parent process identifier.
- nice ()
- Bias the existing priority of a process.
- brk ()
- Increase/decrease the data segment size of a process.
Question 9
Explanation
- Fault handler executes in kernel mode.
- Some faults are handled by “fixing” the exceptional condition and returning to the faulting context
- Fault handler resets faulting context to re-execute instruction that caused the fault.
- Steps to transfer control to fault handler:
- UNIX signals fault
- Fault handler changes the saved context to transfer control to a user- mode handler on return from fault.
- Handler must be registered with OS. .