C++ Process Simulation
University Project #Operating Systems
Process Simulation
A CPU process management simulation written in C++, also features a testing suite and provided test data.
How Execution works:
- Process at the front of the CPU/IO queue will have it’s front value of process->times
- Reduced by up to maxTime if positive (CPU Burst)
- Will create a Timout event and move process to back of qCPU if process->times->dequeue()->get() - maxTime != 0
- Will otherwise create a CompleteCPU event which will either exit if process->times is empty or create a StartIO event
- Dequeued from process->times (IO Burst)
- Will then create a CompleteIO event which will either exit if process->times is empty or create a StartCPU event