In monitors, when is a condition variable signaled?
When a condition for waiting threads changes.
When a resource is released.
When a mutex is unlocked.
When a waiting thread has completed its execution.
What is a major advantage of using the Banker's Algorithm?
It simplifies resource allocation logic.
It guarantees safe resource allocation if possible.
It prevents starvation.
It increases resource utilization.
Which of the following mechanisms is commonly used to solve the bounded buffer problem?
Monitors
Mutex locks
Condition variables
Futexes
What does a Process Control Block (PCB) primarily contain?
Memory allocation details
CPU registers
Process scheduling information
All of the above
Which file allocation method best supports dynamic file growth?
None of the above
Contiguous Allocation
Linked Allocation
Indexed Allocation
Which of the following is NOT one of the necessary conditions for a deadlock to occur?
Mutual Exclusion
Circular Wait
Hold and Wait
No Preemption
Which I/O scheduling algorithm favors requests that are closer to the current position of the disk arm and can lower the average wait time?
LOOK
SCAT
FCFS
SSTF
In the context of deadlock prevention, which strategy involves breaking one of the necessary conditions for deadlock?
Mutual exclusion
Circular wait
No preemption
Hold and wait
Which file allocation method uses a single indexed structure to keep track of all file blocks?
Acyclic-Graph Allocation
Which type of hypervisor is embedded in the host operating system?
Type 1 Hypervisor
Bare-metal Hypervisor
Managed Hypervisor
Type 2 Hypervisor