Subject(s): Computer Science—Operating Systems
Requested Due Date: 10/01/14 8:00AM EDT
f the operation is "_wt, D, A, 8" then you wait for 8 steps.
Take the included file as an example for your input. There are separate files for Undergraduate students and Graduate students, so make sure you have the right file. These files contain sample jobs. The first line gives you the job number and the number of lines in the job followed by the priority (comma separated). The next lines are the instructions. For undergrads they are in comma separated text, for grads they are in binary (8 bits for the line number, 24 for the instruction, 8 for Arg1, 8 for Arg2, 8 for Arg3). In either case, you will need to parse these jobs into objects so that you can store them in your hard disk data objeect (it should be able to store all the jobs). Once you have the HDD object filled with the jobs, you will need to write a similar RAM object that holds jobs as well. You will write a Long Term Scheduler module that moves the correct jobs (according to the various algorithms) from the HDD to the RAM. The result of this Phase is the output of the contents of RAM using each of the LTS techniques (FIFO, SJF, Priority, etc.) Please submit your code and sample output to this dropbox. BTW, the two files for grad and ugrad do not match, so they will not reference each other.