OS Sheet (3) Solution
OS Sheet (3) Solution
OS Sheet (3) Solution
A) Prevention B) Avoidance
C) Detection D) Deletion
3. Which of the following are the states of a five state process model?
ii) The process may be removed from suspended state automatically without removal
order.
A) i only B) ii only
C) i and ii only D) None
7. Throughput of a system is
A) Multithreading B) Multiprocessing
C) Multitasking D) Multiprogramming
A. Rigid
B. Expensive
C. Control
D. Flexible
14. Which scheduling policy is best suited for time-sharing operating systems
A. Shortest job first
B. Round robin
C. First come first serve
D. Elevator
20. A Process Control Block(PCB) does not contain which of the following :
a) Code b) Stack
c) Bootstrap program d) Data
21. The number of processes completed per unit time is known as __________
a) Output b) Throughput
c) Efficiency d) Capacity
30. When several processes access the same data concurrently and the outcome of the
execution depends on the particular order in which the access takes place, is called
a) dynamic condition b) race condition
c) essential condition d) critical condition
31. If a process is executing in its critical section, then no other processes can be executing
in their critical section. This condition is called
a) mutual exclusion b) critical exclusion
c) synchronous exclusion d) asynchronous exclusion
A. input
B. output
C. operating system
D. memory
A. input
B. output
C. operating system
D. memory
2. What is the purpose of the process table? The operating system uses the
process table to keep track of the state of all the processes.
First Come First Serve and Shortest Process Next are non-preemptive
while Round Robin is preemptive.
Synchronization
1. What is synchronization?
Critical Resource:
a resource shared with constraints on its use (e.g., memory, files,
printers, etc.)
Critical Section:
code that accesses a critical resource
Mutual Exclusion:
at most one process may be executing a Critical Section with respect
to a particular critical resource simultaneously
1. What is deadlock?
Deadlock is a situation that can arise when two or more processes hold
resources and request others. Some process holds a resource that another
wants while requesting a second resource, and the other process holds the
second resource while requesting the first. Hence, neither process can
progress.
3. How might an operating system attack the third condition necessary for
deadlock in order to solve the problem of deadlock?
4. How might an operating system attack the second condition necessary for
deadlock in order to solve the problem of deadlock?