Operating System MCQs

1019 MCQs  (Page 8 of 102)

What is a reusable resource?
A. That can be used by one process at a time and is not depleted by that use
B. That can be used by more than one process at a time
C. That can be shared between various threads
D. None of the mentioned
Which of the following condition is required for a deadlock to be possible?
A. Mutual exclusion
B. A process may hold allocated resources while awaiting assignment of other resources
C. No resource can be forcibly removed from a process holding it
D. All of the mentioned
A system is in the safe state if ____________
A. The system can allocate resources to each process in some order and still avoid a deadlock
B. There exist a safe sequence
C. All of the mentioned
D. None of the mentioned
The circular wait condition can be prevented by ____________
A. Defining a linear ordering of resource types
B. Using thread
C. Using pipes
D. All of the mentioned
Which one of the following is the deadlock avoidance algorithm?
A. Banker’s algorithm
B. Round-robin algorithm
C. Elevator algorithm
D. Karn’s algorithm
What is the drawback of banker’s algorithm?
A. In advance processes rarely know how much resource they will need
B. The number of processes changes as time progresses
C. Resource once available can disappear
D. All of the mentioned
Which one of the following is a visual ( mathematical ) way to determine the deadlock occurrence?
A. Resource allocation graph
B. Starvation graph
C. Inversion graph
D. None of the mentioned
To avoid deadlock ____________
A. There must be a fixed number of resources to allocate
B. Resource allocation must be done only once
C. All deadlocked processes must be aborted
D. Inversion technique can be used
An un-interruptible unit is known as ____________
A. Single
B. Atomic
C. Static
D. None of the mentioned