What is a primary advantage of using shared memory for IPC?
Requires more system calls
Higher throughput due to direct access
Slower than message passing
Easier to implement
What advantage does virtual memory provide over conventional memory assembly?
Increased memory speed
Allows programs larger than physical memory
Reduces page faults
Improves cache performance
What does context switching involve?
Saving and loading the state of a thread.
Changing the priority of a thread.
Switching from user mode to kernel mode.
Switching between different operating systems.
Which disk scheduling algorithm guarantees that each request gets serviced and prevents starvation?
C-SCAN
FCFS
LOOK
SSTF
In the context of multithreading, what is 'synchronization' primarily concerned with?
Improving thread performance.
Eliminating context switching.
Managing different operating systems.
Ensuring mutual exclusion and visibility of shared data.
Which scheduling algorithm allows processes to share CPU time fairly?
Shortest Job First
First-Come, First-Served
Priority Scheduling
Round Robin
What is the main purpose of using a semaphore in process synchronization?
To enable efficient memory allocation.
To increase processor speed.
To serialize access to a shared resource.
To provide mutual exclusion to shared resources.
What is thrashing in operating systems?
An error in process execution
Inefficient CPU scheduling
Overloading the CPU with processes
Excessive swapping of pages in and out of memory
What advantage does preemptive scheduling provide over non-preemptive scheduling?
It improves responsiveness in a multitasking environment.
It guarantees process completion.
It allows processes to run until completion without interruption.
It requires less CPU overhead.
In a paging system, what is the primary purpose of the page table?
To hold data temporarily during execution
To manage I/O operations
To translate logical addresses to physical addresses
To allocate CPU time