Skip to content

Commit 88801bf

Browse files
committed
CPU Scheduling Algorithm with Interfaces
1 parent 50ce333 commit 88801bf

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scheduling/cpuschedulingalgos.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,9 @@ def run_scheduling(self) -> None:
355355
def animate(self) -> None:
356356
"""Animates the scheduling visualization."""
357357
self.ax.clear()
358-
x, colors, current_pid = 0, {}, None
358+
x: int = 0
359+
colors: dict[str, any] = {}
360+
current_pid: str | None = None
359361
for step in self.engine.simulate():
360362
_, pid, rq = step
361363
if pid:

0 commit comments

Comments
 (0)