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 175 additions and 10 deletions
Showing only changes of commit 840df8af78 - Show all commits

View File

@@ -189,6 +189,8 @@ lock_init (struct lock *lock)
static void static void
donate_priority (struct thread *donor, struct thread *donee) { donate_priority (struct thread *donor, struct thread *donee) {
list_push_back (&donee->donors_list, &donor->donor_elem);
while (donee != NULL) while (donee != NULL)
{ {
if (donor->priority <= donee->priority) if (donor->priority <= donee->priority)