trevs231/eece-315-proj2 — pull request #46 by asatara (2013-03-14 04:15:20+00:00)
Title: Touch up

MakeFile
Added -g flag to compiler when making object files to enable debugging

Logger
replaced string::pop_back with string::substr. Same functionality, my C0++ didn't work

ReadyQueue
Added another parameter to ReadyQueue::insert(). It now takes in a bool telling whether to reset
relative priority or not. This is needed in line 154 in cpu-sch-sim.cpp. We continuously take
out a PCB and check to see if it's priority it higher, if it is, we put it in the CPU, otherwise
we insert it back into the ReadyQueue. Originally, inserting would reset the relative priority,
and that process would never age. This parameter fixes that.
Changed aging to 0 for testing purposes.

Cpu-sch-sim
Added some more clarify and restrictions when picking SPB weighted average.
Changed all ready queue inserts to new version.
Updated log outputs to include more information about PIDs and priority.
Fixed a bracket problem in the interrupt section that caused the if(CPU!=NULL) statement to end
prematurely.
testWorkLoad2
Added new test file, with much higher numbers.