You are on page 1of 10

OS LAB- 7

NAME:- AGRAWAL HIMANSHU SUSHIL


MIS:- 112016001
Branch:- ECE

1)Implementation of Disk Scheduling algorithms


a) FCFS disk scheduling algorithm

CODE:-

OUTPUT
b) SCAN disk scheduling algorithm
Input- Number of request, request sequences, initial head position, total
disk size, head movement direction
CODE:-
Output

c) C-SCAN disk scheduling algorithm


Input- Number of request, request sequences, initial head position, total
disk size, head movement direction

CODE:-
OUTPUT:-

2)Implementation of File Allocation Strategies


a)Sequential file allocation
Input- Starting block and length of file

CODE:-
OUTPUT:-
b)Linked file allocation
Input- blocks already allocated, Starting block and length of file

You might also like