From cbb9d5245519aab508391a00ce626e31e2daea4d Mon Sep 17 00:00:00 2001 From: Gleb Koval Date: Thu, 17 Oct 2024 20:09:43 +0100 Subject: [PATCH] Recover removed comment --- src/threads/thread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/threads/thread.c b/src/threads/thread.c index 8ef0469..858da46 100644 --- a/src/threads/thread.c +++ b/src/threads/thread.c @@ -651,7 +651,8 @@ thread_priority_less (const struct list_elem *a, const struct list_elem *b, return ta->priority > tb->priority; } -/* ss's state must have been changed from +/* Schedules a new process. At entry, interrupts must be off and + the running process's state must have been changed from running to some other state. This function finds another thread to run and switches to it.