Need full functionality of program.
You are to compare performances of FCFS-, FCFS+, SSTF-, and SSTF+.
FCFS- : First Come First Served *without* a disk cache
FCFS+ : First Come First Served *with* a disk cache
SSTF- : Shortest Seek Time First *without* a disk cache
SSTF+ : Shortest Seek Time First *with* a disk cache
The OS simulator has SSTF- and CLOOK. FCFS- can be easily implemented from any of these. And then you will equip the disk controller with a *cach*e. The cache consists of enough memory to store blocks of data N and should be parameterized so that it can be changed easily. The caching policy is as follows:Upon a *read* of a block from disk, the cache is checked if it contains the requested block. If the block is in the cache, the data is taken from there, without having to go to disk. If the block is not stored in the cache, the request is processed as if there were not cache at all, except that the block will be also stored in the cache. If no cache entry is available, one entry must be selected for replacement. The replaced entry is not written to disk. You can use any replacement policy for disk cache i.e. FCFS etc.,.In SSTFs, requests to the same track are to be processed in first-come first-served basis. You need to look at Disk::read() and Disk::write() to see how current disk schedulers work. Parameterize the scheduler types and (the size of the cache).
Measure the cache hit ratios for FIFO+ and SSTF+. Measure the total seek times for the four [login to view URL] modifications will be made to disk.C and disk.H only. Clearly mark all new and/or changed lines with any marker/commentsThe program should give output to convince that solution is correct. (hit ratio and seek time)
## Deliverables
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
## Platform
Unix