Operating System Question And Answer
1. Explain the term system call as applied in operating system Question Answer: -System call is the programmatic way in which a computer program requests a service from the kernel of the operating system on which it is executed. 2. Outline four benefits of virtual memory in computers Question Answer: •It can handle twice as many addresses as main memory. •It enables more applications to be used at once. •It frees applications from managing shared memory and saves users from having to add memory modules when RAM space runs out 3. Describe three strategies that could be used to mitigate deadlock in operating system Question Answer: •Breaking mutual exclusion: deadlock can be mitigated by making resources more shareable. For example, using a reader/writer lock instead of a mutex can make deadlock less likely to occur. •Breaking no-preemption: resources can be made preemptable. If a process tries to acquire a resource that is held by another process, we can make it possible for the new process to steal the resource. •Breaking hold-and-wait: Can break hold-and-wait by having threads release all locks and re-acquire them all at once 4. Several resources are prerequisite for a
Document information
- Uploaded on
- October 22, 2022
- Number of pages
- 12
- Written in
- 2022/2023
- Type
- Exam (elaborations)
- Contains
- Questions & answers