Skip to content

Commit

Permalink
- All algorithms complete and functioning correctly!
Browse files Browse the repository at this point in the history
[STILL TO DO]
- More comments within the project
  • Loading branch information
JaredScar committed Oct 20, 2018
1 parent 08b988d commit 81d75c7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/CPU.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,10 +241,8 @@ class CPU {
// Make sure the clock is or has passed the ArrivalTime of the job:
if (job.getArrivalTime() <= this.main_handler.getClock()) {
job.active = true;
console.log("Job " + job.getPID() + " burstsRemaining: " + job.getBurstsRemaining()); // TODO debug, get rid of
// Does it have no more bursts remaining for it?:
if (job.getBurstsRemaining() === 0) {
console.log("Job " + job.getPID() + " job.getBurstsRemaining() === 0 runs: " + job.getBurstsRemaining()); // TODO debug, get rid of
// Job was finished, mark it
job.setCompleted(true);
job.active = false;
Expand Down

0 comments on commit 81d75c7

Please sign in to comment.