Assignment 03
Assignment 03
Note 1: You may consult any book, website, senior, friend but write in your own language. Assignment
must be hand written A4 single sided pages. Submit assignment in start of class.
Note 2: Cheating is highly unethical and may result in zero marks in all assignments/ sessional, if
repeated may extend to 'F' grade in course.
Note 3: Try to write neat & clean, unreadable assignment will not be marked. However, no need of
binding, you can simply submit stapled papers with front page clearly mentioning assignment no,
subject, student name, roll no & finally PUCIT New Campus.
Note 4: Papers may have lines and students can write on both sides. Here, single sided is written just
for counting purpose.
PART-I (Check/Build your Concepts) [50 marks]
Problem 1
Suppose that a scheduling algorithm (at the level of short-term CPU scheduling) favors those processes
that have used the least processor time in the recent past. Why will this algorithm favor I/O-bound
programs and yet not permanently starve CPU-bound programs?
Problem 2
Why is it important for the scheduler to distinguish I/O-bound programs from CPU-bound programs?
Problem 3
Explain the working of Multi-level and Multi-level Feedback Queue and Differentiate between them?
What is the benefit of using Multi-level Feedback Queue?
Problem 4
Consider a system implementing multilevel queue scheduling. What strategy can a computer user
employ to maximize the amount of CPU time allocated to the user’s process?
Problem 5
Which of the following scheduling algorithms could result in starvation? Explain your answer:
a. FCFS
b. SJF
c. RR
d. Priority
Problem 6
Explain the differences in how much the following scheduling algorithms discriminate in favor of short
processes:
a. FCFS
b. RR
c. Multilevel feedback queues
Problem 7
Discuss how the following pairs of scheduling criteria conflict in certain settings:
a. CPU utilization and response time
b. Average turnaround time and maximum waiting time
c. I/O device utilization and CPU utilization
P1 CPU Burst (6) I/O Burst (8) CPU Burst (3) I/O Burst (4) CPU Burst (5)
P2 CPU Burst (7) I/O Burst (5) CPU Burst (2)
P3 CPU Burst (5) I/O Burst (5) CPU Burst (4) I/O Burst (4) CPU Burst (3)
Problem 4
Draw the graph for the following processes using MLFB Queue Scheduling algorithm:
a. RR Time Slice (20 sec)
b. RR Time Slice (50 sec)
c. FCFS
Process Arrival Time Burst Time
P1 10 100
P2 50 120
P3 60 180
P4 65 110
P5 80 70