Project Work 1

After completing the lab work;

  1. Implement a round-robin scheduling algorithm. (Hint: see the Run() method in SchedulingAlgorithm.java).

  2. Consider modifying the format of the Summary-Processes log file. The total cpu time for the process is repeated in the last column and should be eliminated. It would be nice if the total elapsed milliseconds (system clock) were present at the beginning of the line so that we can see when things happened exactly during the simulation. If we switch to the meanings of the various parameters as suggested above, we may want to rethink the overall format of the lines as well.

  3. Consider adding a configuration parameter for "summary_file" so that the name for the Summary-Results file can be specified in the configuration file.

  4. Consider adding a configuration parameter for "log_file" so that the name for the Summary-Processes file can be specified in the configuration file.

  5. Consider adding a graphical user interface that allowed the user to view the simulation as it proceeded. This might show a summary of the number of blocked processes and executable processes, the percentage of idle time, and even the current status of each process. This might be enabled by a configuration parameter "show_graphics true". A "step" button might allow the simulation to proceed 1000 milliseconds at a time, or a "run" button might allow it to update every 1000 milliseconds until the simulation completes. A "reset" button might restart the simulation to its original values, and there might be menu options to allow the user to override the parameter values given in the configuration file.