2021-08-28 15:07:06 +10:00
2021-08-27 12:08:29 +10:00
2021-08-13 20:42:38 +10:00
2021-08-13 09:00:31 +10:00
2021-08-28 15:07:06 +10:00
2021-08-28 15:07:06 +10:00
2021-08-28 14:02:51 +10:00
2021-08-13 20:42:38 +10:00

COMP2240-Assignment1

The assignment task is to write a program that simulates the scheduling algorithms

  • First Come First Serve (FCFS)
    • Standard FCFS scheduling algorithm. Process tickets are ignored in scheduling.
  • Shortest Remaining Time (SRT)
    • Standard SRT scheduling algorithm. Process tickets are ignored in scheduling.
  • Multi-level Feedback (Variable) (FBV)
  • Lottery (LTR)

For each algorithm, the program should list the order and time of the jobs being loaded in the CPU, and compute the turnaround time and waiting time for every job as well as the average turnaround time and average waiting time for the set of processes.

The values should be put into a table in an output.

Pseudocode

Import File

Open File

Import Objects from file

IF line == BEGIN
go to next line
Set Dispatcher to value after DISP: #
go to next line
if end move on
if line == ID
create new proccess object
Save:
ID
Arrive
Exec Size
Tickets
if end move on
if line == begin random
import one number per line 
Description
No description provided
Readme 1.1 MiB
Languages
Java 100%