Skip to content

anhbanlinhle/cpu-scheduling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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