Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 841 Bytes

README.md

File metadata and controls

45 lines (29 loc) · 841 Bytes

cpu-scheduling

Simple server-side rendering webpage to illustrate CPU scheduling Gantt chart

Supporting algorithms:

  • First Come First Serve
  • Shortest Job First
  • Shortest Remaining Time First
  • Non-preemptive Priority (both priority order)
  • Preemptive Priority (both priority order)
  • Round Robin (custom Qtime)

Prerequisite

To install required packages, run:

npm install

Usage

To start server, run:

npm start

GUI is ready on localhost:1111

Data

To manually customize input processes, modify process.json

Or run process_gen.py

python3 process_gen.py

To input processes from terminal on each line: <process name> <arrive time> <burst time> <priority>

Press q to close