How alvarojorgeg/examen-planificacion-cpu works
Project type and purpose
• This is a self-contained, object-oriented Python CLI tool for simulating CPU scheduling algorithms (FCFS and Round Robin), persisting process data, generating a Gantt chart, and computing scheduling metrics.
• It is meant as an educational open-source exercise rather than a distributed or web-based application.
File structure
• Top-level:
• README.md, requirements.txt, pytest.ini
• src/ — core modules
• tests/ — automated unit tests
• src/ modules:
• main.py – command-line entry point
• proceso.py – Process class (domain entity)
• scheduler.py – implements FCFS and Round Robin
• repositorio.py – JSON/CSV persistence layer
• metrics.py – computes average response, turnaround, wait times
• tests/ mirror each core module with corresponding test_*.py files.
README for additional insights
• Confirms the domain (CPU scheduling), CLI usage, dependencies (Python ≥3.10, pytest), and features (Gantt chart generation, persistence formats).
• No external network services or databases—just file I/O.