Experiment 10 OS
Experiment 10 OS
10 - Part A
Aim:
Write and execute a c program to implement First Come First Serve, C-Look Disk Scheduling
Algorithm.
Requirements: C Programming knowledge and understanding of disk scheduling concept.
Outcome: Understand the disk scheduling algorithms in an operating system..
Theory:
It is the simplest form of disk scheduling algorithms. The I/O requests are served or processes
according to their arrival. The request arrives first will be accessed and served first. Since it
follows the order of arrival, it causes the wild swings from the innermost to the outermost tracks of
the disk and vice versa.
We illustrate them with a request queue (0-199).
Instructions:
1. Take input queue of request and then draw request entertainment flow based on the concept
of FCFS disk scheduling concept.
Exp.10- Part B
Name of Student: SOHAM HANDE Roll No.: A129
Programme: BTECH AIDS
Output:
Observation & Learning:
Conclusion:
Questions:
1. Solve the following using FCFS disk scheduling algorithm.
To solve the problem using the **First-Come, First-Served (FCFS)** disk scheduling
algorithm, we simply follow the order of the requests in the queue. The disk head starts at
cylinder 100, and the queue of requests is processed sequentially in the order given.
Work Queue:
100
We calculate the total movement of the disk head by finding the absolute difference
between the current position and the next request in the queue, then summing them all.