Skip to content

Program that simulates a single threaded CPU by executing processes on a computer system

Notifications You must be signed in to change notification settings

MilitsaB/CPUSimulator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPUSimulator

Program that simulates a single threaded CPU by executing processes/jobs on a computer system.

-> Version 1 is implemented using a sorted Priority Queue ADT
-> Version 2 is implemented using a heap based Priority Queue ADT

Time complexity and space complexity were compared for both programs in order to determine which Priority Queue ADT has a better performance.
Heap priority queue performed much better as its complexity is O(n log n).

Note that a starvation avoidance algorithm is used in order to allow to reassign priorities for low priority processes on a scheduled basis.

About

Program that simulates a single threaded CPU by executing processes on a computer system

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages