Unit2 - Subjective Questions

CSE316 • Practice Questions with Detailed Answers

1

Differentiate between Preemptive and Non-preemptive scheduling with examples.

2

Define the role of the Dispatcher in CPU scheduling. What is dispatch latency?

3

Explain the various Scheduling Criteria used to compare CPU scheduling algorithms.

4

Describe the Convoy Effect in the context of First-Come, First-Served (FCFS) scheduling.

5

Explain the Shortest Job First (SJF) scheduling algorithm. Why is it difficult to implement in short-term scheduling?

6

Discuss the mathematical formula for Exponential Averaging used to predict the next CPU burst in SJF. Explain the role of

.

7

Explain the Round Robin (RR) scheduling algorithm. How does the size of the Time Quantum affect system performance?

8

What is the Starvation problem in Priority Scheduling? How can Aging resolve it?

9

Describe the Multilevel Feedback Queue (MLFQ) scheduling algorithm. What parameters define an MLFQ scheduler?

10

Consider the following set of processes with arrival times and burst times:

Process Arrival Time Burst Time
P1 0 5
P2 1 3
P3 2 8
P4 3 6

Calculate the Average Waiting Time and Average Turnaround Time using Preemptive SJF (Shortest Remaining Time First).

11

Distinguish between Symmetric Multiprocessing (SMP) and Asymmetric Multiprocessing (AMP) scheduling.

12

Explain the concept of Processor Affinity and Load Balancing in multiprocessor scheduling.

13

What is Real-Time Scheduling? Differentiate between Hard and Soft real-time systems.

14

Describe Rate Monotonic Scheduling (RMS). What are the conditions for its applicability?

15

Explain Earliest Deadline First (EDF) scheduling. How does it differ from Rate Monotonic Scheduling?

16

Discuss Thread Scheduling focusing on the distinction between Process-Contention Scope (PCS) and System-Contention Scope (SCS).

17

Using Little's Law, explain the relationship between queue length, arrival rate, and waiting time in a stable system.

18

Compare First-Come, First-Served (FCFS), Shortest Job First (SJF), and Round Robin (RR) based on Average Waiting Time and Response Time.

19

Consider 3 processes P1, P2, P3 with burst times 24, 3, and 3 ms respectively. Compare the Average Waiting Time if they arrive in order P1, P2, P3 vs P2, P3, P1 using FCFS.

20

What are the three different types of schedulers in an Operating System? Briefly explain each.