I would like to know if any one know what are the steps of setting up code for CPU Scheduling. I must develop a simulation program for CPU scheduling.
-First I have to use FCFS(first come first serve) algorithm that will read the first number that me or anybody put into the data file.
-Then my program will tell you the times in which each program takes to finish and the average waiting time; which is the total time divided by the amount of process that will be give but will be different by each user.
The same with goes for SJF the only different with SJFS is the shorts time program goes first.
-The next algorithm my program will implement is Priority, and priority is the most important program to the particular user will go first and finish then next in order of importance.
-Next will be Round Robin (RR) with a time quantum that will be in the data file. The time quantum decides how the RR will run because it tell how much time it will spend on each process
All algorithms will give an average waiting time (AWT) for now my program will be in C++
My teacher is difficult because he wants us to be better programmers but some computer science majors are not really concentrating on that field so programming is not my expertise but I have done basic program, when it gets to these difficults one I loose my mind. I know how to set up a data file and set up maybe the beginning with the #<iostreams> after that I know to list variables and I am Lost