Which virtualization technique is most effective for network resources?
Disk Virtualization
Memory Virtualization
Application Virtualization
Network Virtualization
What is the main purpose of using a semaphore in process synchronization?
To increase processor speed.
To serialize access to a shared resource.
To provide mutual exclusion to shared resources.
To enable efficient memory allocation.
What is thrashing in operating systems?
An error in process execution
Overloading the CPU with processes
Excessive swapping of pages in and out of memory
Inefficient CPU scheduling
What does context switching involve?
Saving and loading the state of a thread.
Switching from user mode to kernel mode.
Changing the priority of a thread.
Switching between different operating systems.
Which resource is typically not virtualized?
Physical devices such as printers
Memory
CPU
Network bandwidth
What is a potential problem with the Shortest Job Next (SJN) scheduling algorithm?
It quickly handles high-priority tasks.
It is simple to implement.
It may lead to starvation for long processes.
It guarantees fairness among all processes.
Which threading library provides a low-level API specifically optimized for multithreading in C?
Win32 Threads
OpenMP
Pthreads
Java Threads
What would most likely happen in a deadlock situation?
Processes will wait indefinitely
All processes will be terminated
System performance will improve
Resources will be allocated more efficiently
What is a primary advantage of using shared memory for IPC?
Requires more system calls
Slower than message passing
Higher throughput due to direct access
Easier to implement
In memory allocation, which strategy involves assigning a whole block of memory to a process?
Segmentation
Paging
Non-contiguous allocation
Contiguous allocation