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.