List view
# MESSAGES(client to server) ## START_SIMULATION Parameter Type Description algorithm String E.g., "SRTF", "RoundRobin". Selects the Strategy to use. processes Array The list of process objects, including creation_time, duration, and static_priority. config Object The global configuration: quantum and aging rate. # EVENTS (server to client) ## STATE_UPDATE Parameter Type Description time Integer The current simulation time (t). cpu_running_pid Integer The ID of the process currently on the CPU. ready_queue_state Array The current state of the Ready Queue (IDs and relevant metrics like remaining_time, dynamic_priority). context_switch Boolean true if a context switch just occurred. gantt_segment Object Data needed to update the Gantt Chart visualization for the current time step. ## PROCESS_COMPLETED Parameter Type Description pid Integer The ID of the finished process. metrics Object The final tt and tw for this specific process. ## SIMULATION_COMPLETED Parameter Type Description algorithm String The algorithm that just finished. final_metrics Object The final average tt, average tw, and total context switches. full_gantt_data Array The complete dataset for the final, rendered Gantt chart.
No due date•1/5 issues closedRead inputs and generating the initial required plain-text outputs.
No due date•0/5 issues closedBuild the engine that executes the scheduling algorithms and calculates the results.
No due date•10/12 issues closed