Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 35

OPERATING SYSTEMS- IT 204

PRACTICAL FILE G3 GROUP

SUBMITTED BY:
CHIRANJEEV SINGH SETHI(2K20/ME/73)

SUBMITTED TO:
PROFF. RAHUL GUPTA SIR
ASSISTANT PROFFESOR
DEPARTMENT OF INFORMATION TECHNOLOGY
DELHI TECHNOLOGICAL UNIVERSITY, NEW DELHI
Experiment 1
Question1-:Write a program on First come First serve(FCFS) Scheduling
algorithm.

Solution :
Output:
Experiment-2
Question 2- Write a program on Shortest job first (SJF) Scheduling algorithm.

Solution:
Output-:
Experiment-3
Question 3-:Write a program to implement the priority scheduling algorithm

Solution-:
Output-:
Experiment-4
Question 4-:Write a program to implement round robbin scheduling algorithm.

Solution-:
Output:

Experiment-5
Question 5-:Write a program to implement pre-emptive shortest job first
algorithm.

Solution-:
Output-:
Experiment-6
Question 6-:Write a program to implement the longest remaining time
first(LRTF) algorithm
Output:
Experiment-7

Question 7-: Write program to implement Banker’s algorithm

Solution-:
Output:
Experiment-8

Question 8-:Write program to implement producer-consumer problem

Solution-:
Output-:
Experiment-9
Question 9-: Write a program to implement the first in first out(FIFO) page
scheduling algorithm.

Solution-:
Output-:
Experiment-10

Question 10-: Write a program for Least Recently Used(LRU) page replacement
algorithm.

Solution-:
Output-:
Experiment-11

Question 11-:Write a program to implement dining-philosophers algorithm.

Solution-:
Output-:
Experiment-12

Question 12: Write a program for reader-writer problem.

Solution-:
Output-:
Experiment-13
Question 13-: Write a program to implement the First cum First serve disk
scheduling algorithm

Solution-:
Output-:
Experiment-14

Question 14-: Write a program to implement the Shortest seek time first(SSTF)
Disk scheduling algorithm.

Solution-:
Output-:
Experiment-15

Question 15-:Write a program to implement the SCAN disk scheduling


algorithm.

Solution-:
Output-:

You might also like