fix mlfqs tests, complete BSD scheduling

This commit is contained in:
2024-10-17 02:38:57 +01:00
parent c5e41db9b0
commit 044c383a0f
3 changed files with 34 additions and 9 deletions

View File

@@ -233,6 +233,7 @@ lock_release (struct lock *lock)
lock->holder = NULL;
sema_up (&lock->semaphore);
thread_yield ();
}
/* Returns true if the current thread holds LOCK, false