CS-418 Homework 6 - 200 cylinders and that the disk head starts in the middle of the disk(cylinder 100 This program can be written in C or Java

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Professor: Van Horn CS-418 Operating Systems Homework # 6 Disk I/O Scheduler Simulation Assignment: Write a simulation of disk scheduler that can service disk I/O requests using FIFO, SSTF, and Scan algorithms. Your simulator will read a file named " IORequests.txt ." Each line of the file will contain one integer representing an I/O request to a cylinder. There will be 10 integers in the file. You should prompt the user for the algorithm to execute (FIFO, SSTF, or Scan), then display the cylinders in the order in which they were accessed and the total seek distance required to service the I/O requests using the selected algorithm. Assume that the disk has
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 200 cylinders and that the disk head starts in the middle of the disk (cylinder 100). This program can be written in C++ or Java, with a text interface or GUI. For example, if the IORequests.txt file contains these values: 98 183 37 122 14 124 65 67 70 85 Your output for FCFS should be something like the following: Cylinder service order: 98 183 37 122 14 124 65 67 70 85 Total seek distance: 615 Deliverables: Email to me: 1. your source code 2. a report that explains your program design. ....
View Full Document

This note was uploaded on 02/21/2012 for the course COMPUTER cs 418 taught by Professor Idk during the Spring '12 term at Capitol College.

Ask a homework question - tutors are online