An Improved FCFS IFCFS Disk Scheduling A
An Improved FCFS IFCFS Disk Scheduling A
20
International Journal of Computer Applications (0975 – 888)
Volume 47– No.13, June 2012
first request, will be served. After serving first request and the Table 1. Comparison of FCFS and IFCFS (Case 1)
requests that were served on the way, disk head will move to
the next request waiting in the queue. On the way going to Total Head Average Seek
Algorithms
serve this request, if there is any request waiting from the Movement Time
current disk head position to the next waiting request, will be FCFS 160 26.67
served etc. IFCFS guarantees the performance improvement
IFCFS 135 22.50
over FCFS.
Track Numbers
K to the first request in the queue REQUEST.
Step 5. Serve the first request in the queue REQUEST.
50
Step 6. Remove the requests from the queue
REQUEST that are already served. 40
Step 7. END
30
3. PERFORMANCE EVALUATION 20
To evaluate the performance, I assumed that all the I/O
requests are independent of each other and have equal 10
priority. The requests are stored in the request queue. The
minimum track number is 0 and the maximum track number is 0
100 on each platter. The seek time has been taken as the Time
performance parameter.
21
International Journal of Computer Applications (0975 – 888)
Volume 47– No.13, June 2012
35 100
30 90
25 80
20 70
15 60
Track Numbers
10
50
5
40
0
FCFS IFCFS 30
20
Fig 3: Comparison of Average Seek Time (Case 1)
Case 2: The disk queue with request for I/O to blocks on 10
cylinders 100, 5, 50, 90, 75, 10, 80 and 60 has been taken into
0
consideration. If disk head is presently at cylinder 40, it will
first move to cylinder 100. Since five I/O requests on Time
cylinders 50, 90, 75, 80 and 60 will be on the way going from
cylinder 40 to 100, these five requests will be served before Fig 4: Representation of FCFS (Case 2)
the disk head reached to cylinder 100. After serving request at
cylinder 100, the request queue will be checked for next
request. Since the requests on cylinders 50, 90, 75, 80 and 60
have been already served, the next available request is on Queue = 100, 5, 50, 90, 75, 10, 80, 60 Head starts at 40
cylinder 5. The disk head will now move to cylinder 5 from
cylinder 100. On the way going to cylinder 5, the request on
100
cylinder 10 will be served. The total head movement is 155
cylinders. Using the same example, the total head movement 90
in FCFS is 410 cylinders. Table 2 shows the comparison of
result of proposed IFCFS with FCFS algorithm. Figure 4 and 80
Figure 5 shows the representation of FCFS and IFCFS
respectively. Figure 6 shows the comparison of average seek 70
time of FCFS and IFCFS.
60
Track Numbers
50
40
30
20
10
0
Time
22
International Journal of Computer Applications (0975 – 888)
Volume 47– No.13, June 2012
Queue = 100, 5, 50, 90, 75, 10, 80, 60 Queue = 20, 35, 5, 95, 75, 55, 85, 45, 40, 15
Head starts at 50
Head starts at 40
100
55
50 90
45 80
40 70
Average Seek Time
35 60
Track Numbers
30 50
25
40
20
30
15
20
10
10
5
0 0
FCFS IFCFS Time
23
International Journal of Computer Applications (0975 – 888)
Volume 47– No.13, June 2012
55 5. REFERENCES
[1] H. M. Deitel, “Operating Systems”, 2nd Edn., Pearson
50 Education Pte. Ltd., 2002, ISBN 81-7808-035-4.
45 [2] Sourav Kumar Bhoi, Sanjaya Kumar Panda, and Imran
Hossain Faruk, “Design and Performance Evaluation of
40
Average Seek Time
24