Merge 'task1/priority-donation' into 'master' #14

Merged
sb3923 merged 66 commits from task1/priority-donation into master 2024-10-23 16:15:45 +00:00
4 changed files with 152 additions and 10 deletions
Showing only changes of commit ee0cf632b9 - Show all commits

View File

@@ -226,6 +226,7 @@ lock_acquire (struct lock *lock)
if (lock->holder != NULL)
{
t->waiting_lock = lock;
donate_priority (t, lock->holder);
}
sema_down (&lock->semaphore);