OS MIDTERM Flashcards
What is the primary goal of CPU scheduling?
A. Maximize memory usage
B. Minimize I/O bursts
C. Maximize CPU utilization
D. Reduce thread priority
Maximize CPU utilization
What is the CPU-I/O burst cycle?
A. A process runs only on the CPU
B. A cycle alternating between memory and storage
C. A repeating sequence of CPU execution and I/O wait
D. A thread execution pattern
A repeating sequence of CPU execution and I/O wait
Which part of a process begins the execution cycle?
A. I/O burst
B. Termination burst
C. CPU burst
D. Memory request
CPU burst
When must the CPU scheduler make a decision?
A. Process finishes
B. Switch from waiting to ready
C. Switch from running to ready
D. All of the above
All of the above
Which of the following situations does NOT involve a scheduling choice?
A. Process terminates
B. Process switches from waiting to ready
C. Process switches from running to ready
D. Process switches from running to waiting
Process switches from running to waiting
What is dispatch latency?
A. Time CPU remains idle
B. Time to process I/O
C. Time to stop one process and start another
D. Time to execute entire process
Time to stop one process and start another
Which type of scheduling may cause race conditions with shared data?
A. Non-preemptive
B. Preemptive
C. SJF
D. FCFS
Preemptive
Which metric is the time from request submission to the first response?
A. Waiting time
B. Turnaround time
C. Response time
D. Throughput
Response time
Which of the following is NOT a scheduling optimization criteria?
A. Minimize context switching
B. Maximize CPU utilization
C. Minimize turnaround time
D. Minimize waiting time
Minimize context switching
Which algorithm uses a FIFO queue?
A. Round Robin
B. FCFS
C. SJF
D. Priority
FCFS
What problem is common in FCFS scheduling?
A. Memory fragmentation
B. CPU starvation
C. Convoy effect
D. Context switching
Convoy effect
Which algorithm minimizes average waiting time?
A. FCFS
B. Round Robin
C. SJF
D. Priority Scheduling
SJF
Which algorithm is the preemptive version of SJF?
A. Longest Remaining Time First
B. Round Robin
C. Shortest Remaining Time First
D. Priority Round Robin
Shortest Remaining Time First
In Round Robin scheduling, what determines the time slice?
A. Process type
B. Process size
C. Time quantum
D. CPU load
Time quantum
What is the disadvantage of having too small a time quantum in Round Robin?
A. Increases throughput
B. Increases context switching overhead
C. Increases response time
D. Reduces fairness
Increases context switching overhead
In priority scheduling, which number has the highest priority?
A. The largest integer
B. 0
C. The smallest integer
D. 100
The smallest integer
What is starvation in priority scheduling?
A. When all processes are terminated
B. When high-priority processes are delayed
C. When low-priority processes never execute
D. When threads run in parallel
When low-priority processes never execute
What is the solution to starvation?
A. Fragmentation
B. Aging
C. Preemption
D. Multithreading
Aging
Which scope involves competition among all system threads?
A. User contention scope
B. PCS
C. Kernel contention scope
D. LWP scope
Kernel contention scope
Thread scheduling is typically done in:
A. Application-level only
B. User mode only
C. Kernel level
D. File system level
Kernel level
Which of the following is a symmetric multiprocessing system?
A. One CPU controlling others
B. Only one thread per CPU
C. Each processor is self-scheduling
D. CPUs use different operating systems
Each processor is self-scheduling
What is processor affinity?
A. A processor bonded to another
B. Thread preferring a certain processor
C. Random CPU assignment
D. Cache ignored when scheduling
Thread preferring a certain processor
Which type of affinity allows OS to keep a thread on a processor with no guarantee?
A. Hard affinity
B. Soft affinity
C. Sticky affinity
D. Load-based affinity
Soft affinity
What is the goal of load balancing in multiprocessor systems?
A. Prioritize CPU-bound processes
B. Distribute workload evenly
C. Ignore cache contents
D. Reduce CPU usage
Distribute workload evenly