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 84 additions and 5 deletions
Showing only changes of commit 6b9b671368 - Show all commits

View File

@@ -120,7 +120,10 @@ sema_up (struct semaphore *sema)
sema->value++;
intr_set_level (old_level);
thread_yield ();
if (intr_context ())
intr_yield_on_return ();
else
thread_yield ();
}
static void sema_test_helper (void *sema_);