TASK:
Now that you have implemented your menu system which has configurability via the config files for HDD parameters and block sequence access list (which are passed as parameters to your placeholders).
The last stage of this simulator is implementing each of your simulators (FCFS, SSTF &‘SCAN& LOOK’) in Perl.
Each simulator should be a separate Perl script that will take in the HDD parameters and the block sequence access list – as arguments.
These scripts will then be called by their respective place holders in your menu system which will maintain its existing logging functionality.
Prior to any simulation execution, the user will be prompted for an output file name (default is [login to view URL] – overwritten if already existing). The contents on this output file will be (each on new lines):
• The original input HDD parameters
• The original block access sequence
• The final simulated block access sequence
• The calculated total simulated time
Note:
• This simulator will assume that each track (HDD) will only hold a maximum of 5 blocks.
• Seek time is assumed to be a track-track delay (for meaningful results)
• Search time is assumed to be on a per block transversal
• Blocks are read in/requested sequentially (1 ms delay)
• Assume to start on track 1, block 1 at the start of each simulation
• Assume no buffer overflow (infinite buffer size)
In addition to the coded solution you are required to provide a short informal write up (500 words) describing how key aspects of code meet the requirements for this task.