Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sajdoko/sjf-preemptive-simulator
This project is a simulation of the Shortest Job First (SJF) preemptive or shortest-remaining-time-first scheduling algorithm.
https://github.com/sajdoko/sjf-preemptive-simulator
preemptive shortest-job-first shortest-remaining-time-first simulation simulator sjf
Last synced: 22 days ago
JSON representation
This project is a simulation of the Shortest Job First (SJF) preemptive or shortest-remaining-time-first scheduling algorithm.
- Host: GitHub
- URL: https://github.com/sajdoko/sjf-preemptive-simulator
- Owner: sajdoko
- Created: 2023-01-11T16:06:41.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2023-01-15T00:09:21.000Z (about 2 years ago)
- Last Synced: 2024-11-10T11:42:39.415Z (3 months ago)
- Topics: preemptive, shortest-job-first, shortest-remaining-time-first, simulation, simulator, sjf
- Language: JavaScript
- Homepage: https://sajdoko.github.io/sjf-preemptive-simulator/
- Size: 84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# SJF Preemptive Scheduler Simulator
This project is a simulation of the Shortest Job First (SJF) preemptive or shortest-remaining-time-first scheduling algorithm. It allows you to add processes to a scheduler, and then simulate the execution of the processes using the Shortest Job First (SJF) algorithm. The scheduler prioritizes the execution of processes with the shortest burst time, and can interrupt a running process to give CPU time to another process with a shorter burst time.
## Features
- Add new process with its ID, arrival time, and burst time
- Run the scheduler and simulate the execution of the processes using the SJF Preemptive algorithm
- Display the process list and the result of the scheduling in the table## Getting Started
1. Clone the repository to your local machine
2. Open the `index.html` file in your browser
3. Use the form to add processes to the scheduler
4. Click the "Run Scheduler" button to simulate the execution of the processes## Technologies Used
- HTML
- CSS
- JavaScript
- Bootstrap## Contributing
Please feel free to contribute by reporting any issues or by creating pull requests to the repository.
## Author
Sajmir Doko
## Acknowledgements
The project is based on the simulation of the SJF Preemptive scheduling algorithm. More information about the algorithm can be found in various Operating System textbooks.
## Note
this is a basic simulation of the algorithm, and it can be enhanced as per your requirements.
## Screenshot
![App Screenshot](https://raw.githubusercontent.com/sajdoko/sjf-preemptive-simulator/master/sjf-simulator.png)