What is a common advantage of using Thread Pooling in multithreading?
It can reduce the overhead of creating and destroying threads repeatedly.
It simplifies context switching for the operating system.
It requires more resources to manage threads efficiently.
It minimizes the chance of deadlocks occurring.
In deadlock prevention, which strategy ensures that at least one of the necessary conditions for deadlock cannot hold?
Allocating resources only when the process can obtain all it needs
Allowing indefinite waiting for resource allocation
Allowing preemption of resources
Ensuring processes request resources in a pre-defined order
What is a major advantage of using the Banker's Algorithm?
It increases resource utilization.
It simplifies resource allocation logic.
It prevents starvation.
It guarantees safe resource allocation if possible.
Which of the following is an example of a multithreading issue that can lead to deadlock?
A thread exceeding its time slice.
A thread being starved of resources.
Two threads waiting for each other to release resources.
An improper context switch.
Which of the following correctly defines a user-level thread?
A thread created by the user application and managed in user space.
A thread managed by the operating system kernel.
A thread that can only run on a single processor.
A thread that is invisible to the user application.
In the context of scheduling, what is preemption?
Scheduling processes based on their arrival time only.
A method of scheduling that waits for the currently running process to finish.
The ability of the OS to interrupt a currently running process to start or resume another.
A technique used to manage processes in a non-competitive manner.
In multi-threading models, which model allows for the highest flexibility in mapping user threads to kernel threads?
Two-Level Model
One-to-One Model
Many-to-Many Model
Many-to-One Model
Which of the following is a downside of using containers compared to virtual machines?
Higher resource overhead
Limited scalability
Increased security risks due to sharing the host OS kernel
Less efficient resource management
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?
SSTF
SCAT
LOOK
FCFS
Which of the following describes network virtualization?
Creating multiple virtual network interfaces on a single device
Isolating virtual machines from each other in a virtualized environment
Combining multiple physical networks into a single logical network
Virtualizing storage devices on a network