Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayhamratrout/cpu_simulator
A C/C++ program to simulate the functionality of a simple CPU, which utilizes one worker thread, with 256 levels of priority in a run queue.
https://github.com/ayhamratrout/cpu_simulator
c c-plus-plus cpp cpu cpu-emulator cpu-scheduling cpu-scheduling-algorithms data-structures object-oriented-programming operating-system operating-systems operating-systems-project os
Last synced: 24 days ago
JSON representation
A C/C++ program to simulate the functionality of a simple CPU, which utilizes one worker thread, with 256 levels of priority in a run queue.
- Host: GitHub
- URL: https://github.com/ayhamratrout/cpu_simulator
- Owner: AyhamRatrout
- Created: 2022-08-10T06:11:43.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-09-03T03:20:55.000Z (over 2 years ago)
- Last Synced: 2024-11-14T09:49:09.329Z (3 months ago)
- Topics: c, c-plus-plus, cpp, cpu, cpu-emulator, cpu-scheduling, cpu-scheduling-algorithms, data-structures, object-oriented-programming, operating-system, operating-systems, operating-systems-project, os
- Language: C++
- Homepage:
- Size: 27.3 KB
- Stars: 5
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CPU Simulator
For the purpose of this project, I decided to write a C/C++ program to simulate the functionality of a simple CPU, which utilizes one worker thread, with 256 levels of priority in a run queue. Particularly, this program simulates the arrival of new tasks, the recirculation of tasks getting preempted by time slice expiration, as well as the returning of tasks to the back of the FIFO queue at each priority level once preempted off the CPU. It is important to note that the CPU structure (a queue in this case) was constructed using the standard library vector as the base data structure.