scheduling.round_robin ====================== .. py:module:: scheduling.round_robin .. autoapi-nested-parse:: Round Robin is a scheduling algorithm. In Round Robin each process is assigned a fixed time slot in a cyclic way. https://en.wikipedia.org/wiki/Round-robin_scheduling Attributes ---------- .. autoapisummary:: scheduling.round_robin.burst_times Functions --------- .. autoapisummary:: scheduling.round_robin.calculate_turn_around_times scheduling.round_robin.calculate_waiting_times Module Contents --------------- .. py:function:: calculate_turn_around_times(burst_times: list[int], waiting_times: list[int]) -> list[int] >>> calculate_turn_around_times([1, 2, 3, 4], [0, 1, 3]) [1, 3, 6] >>> calculate_turn_around_times([10, 3, 7], [10, 6, 11]) [20, 9, 18] .. py:function:: calculate_waiting_times(burst_times: list[int]) -> list[int] Calculate the waiting times of a list of processes that have a specified duration. Return: The waiting time for each process. >>> calculate_waiting_times([10, 5, 8]) [13, 10, 13] >>> calculate_waiting_times([4, 6, 3, 1]) [5, 8, 9, 6] >>> calculate_waiting_times([12, 2, 10]) [12, 2, 12] .. py:data:: burst_times :value: [3, 5, 7]