Fixed the last minor bug (wrong time left on the last process)
+- simulator.c
This commit is contained in:
parent
3a21ea0275
commit
ee95d19bfe
3 changed files with 2 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
0.000000, OS: Simulator start
|
0.000001, OS: Simulator start
|
||||||
READY state from NEW state
|
READY state from NEW state
|
||||||
ate
|
ate
|
||||||
|
|
||||||
|
|
|
||||||
BIN
Sim03/sim03
BIN
Sim03/sim03
Binary file not shown.
|
|
@ -668,6 +668,7 @@ int scheduleProcess(ProcessControlBlockLL *headPointer, ConfigDataType *configPt
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
shortestJobProcNum = wkgPtr->uniquePid;
|
shortestJobProcNum = wkgPtr->uniquePid;
|
||||||
|
shortestJob = wkgPtr->timeLeft;
|
||||||
}
|
}
|
||||||
wkgPtr = wkgPtr->nextPtr;
|
wkgPtr = wkgPtr->nextPtr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue