You will write the part of an operating system that shares the processor between programs in turns (time slices).
Your tasks.
wait_between_turns: with n programs and turns of q ms, how long one program waits between two of its turns.finish_times: give turns of q ms in the order of the list, round and round, until every program has had the time in needs. Return the time at which each program finishes, in the same order.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…