Unit2 - Subjective Questions

CSE316 • Practice Questions with Detailed Answers

1

Differentiate between Preemptive and Non-preemptive scheduling. Give an example algorithm for each.

2

What is a Dispatcher? Explain its functions and define Dispatch Latency.

3

List and explain the five criteria used to evaluate CPU scheduling algorithms.

4

Explain the First-Come, First-Served (FCFS) scheduling algorithm. What is the Convoy Effect?

5

Describe the Shortest Job First (SJF) scheduling algorithm. Why is it considered optimal?

6

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

7

Consider the following set of processes with the length of the CPU burst time given in milliseconds:

Process Burst Time
P1 24
P2 3
P3 3

Calculate the Average Waiting Time using FCFS scheduling if the processes arrive in the order P1, P2, P3.

8

Consider the following processes arriving at time 0:

Process Burst Time
P1 6
P2 8
P3 7
P4 3

Calculate the Average Waiting Time using Non-Preemptive SJF.

9

Explain Priority Scheduling. Discuss the problem of Starvation (Indefinite Blocking) and how Aging solves it.

10

Describe Multilevel Queue scheduling. How is Multilevel Feedback Queue (MLFQ) different?

11

Using Shortest Remaining Time First (SRTF) (Preemptive SJF), calculate the Average Turnaround Time for the following:

Process Arrival Time Burst Time
P1 0 8
P2 1 4
P3 2 9
P4 3 5
12

Discuss Multiprocessor Scheduling. Differentiate between Asymmetric and Symmetric (SMP) multiprocessing.

13

What is Load Balancing in multiprocessor systems? Explain Push Migration and Pull Migration.

14

Explain the concept of Processor Affinity in multiprocessor scheduling. Why is it used?

15

What distinguishes Real-Time Scheduling from general purpose scheduling? Define Hard and Soft real-time systems.

16

Explain Rate Monotonic Scheduling (RMS). What is the basis for assigning priorities in this algorithm?

17

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

18

In the context of Thread Scheduling, explain the difference between Process-Contention Scope (PCS) and System-Contention Scope (SCS).

19

Compare FCFS, SJF, and Round Robin algorithms based on average waiting time and response time.

20

Explain the CPU-I/O Burst Cycle and how it influences the design of the CPU Scheduler.