I just found a bug in version 1.1 for Multilevel Queue (Preemptive).
The following test data and options produced the incorrect result for the algorithm.
Process details (data file 'test.csv'):
process id, burst time, arrival at, priority no., start at, waiting time, completion at,turnaraound time
A,11,15,0,-1,-1,-1,-1
B,1,1,1,-1,-1,-1,-1
C,11,0,1,-1,-1,-1,-1
D,1,19,0,-1,-1,-1,-1
E,20,10,1,-1,-1,-1,-1
Set the options for Multilevel Queue
Range by : Priority no.
Level 1 : Round-Robin, min: 0 max: 0 quantum:10
Level 2 : SJF, min: 1 max: 1
Level 3 : FCFS, min: 2 max: 2
Simulation will produce the results of this bug (the turnaround time are incorrect.)
Still fixing it.
No comments:
Post a Comment