How ajaykumaronly/ai-driven-process-management-system- works
This repository is an AI-assisted CPU scheduling simulator. Its visible web workflow is user input in the Flask-rendered UI, POST to the scheduling endpoint, burst-time prediction, selection of FCFS/SJF or RL scheduling, and JSON results for display. The RL module provides the main internal layer: a process environment with a ready queue, policy actions, and scheduling metrics. The README also describes Round Robin, priority scheduling, and richer visualizations, but the sampled runtime code does not establish their implementation or wiring; the graph therefore focuses on evidenced capabilities.
Main entry points: app.py Flask app · rl_scheduler.py RL scheduler runner · ml_burst.py Burst predictor · index.html Scheduling UI
Components 13
Web interface
- Scheduling UI
ai_scheduler_project/templates/index.html - UI styling
ai_scheduler_project/static/style.css
Request handling
- Flask app
ai_scheduler_project/app.py - FCFS / SJF
ai_scheduler_project/app.py - Traditional schedulers
ai_scheduler_project/scheduler/traditional.py - Schedule and metrics
ai_scheduler_project/app.py
Burst prediction
- Burst predictor
ai_scheduler_project/models/ml_burst.py - Process dataset
ai_scheduler_project/data/process_data.csv - ML model and scaler
ai_scheduler_project/models
RL scheduling
- RL scheduler runner
ai_scheduler_project/scheduler/rl_scheduler.py - Process environment
ai_scheduler_project/scheduler/rl_scheduler.py - PPO policy
ai_scheduler_project/models/rl_scheduler_model.zip
Other components
- User
Connections 12
- User → Scheduling UI: enters processes
README.md - Scheduling UI → Flask app: submits schedule
README.md - Flask app → Scheduling UI: renders page
ai_scheduler_project/app.py - Flask app → Burst predictor: predicts bursts
ai_scheduler_project/app.py - Burst predictor → ML model and scaler: loads model
ai_scheduler_project/models/ml_burst.py - Burst predictor → Process dataset: trains from
ai_scheduler_project/models/ml_burst.py - Flask app → FCFS / SJF: runs FCFS/SJF
ai_scheduler_project/app.py - Flask app → RL scheduler runner: dispatches RL
ai_scheduler_project/app.py - RL scheduler runner → Process environment: steps environment
ai_scheduler_project/scheduler/rl_scheduler.py - RL scheduler runner → PPO policy: loads policy
ai_scheduler_project/scheduler/rl_scheduler.py - RL scheduler runner → Schedule and metrics: returns metrics
ai_scheduler_project/scheduler/rl_scheduler.py - FCFS / SJF → Schedule and metrics: returns schedule
ai_scheduler_project/app.py