4066354f8aRefactor thread_create () to call thread_get_priority in order to retrieve priority
Themis Demetriades
2024-10-25 17:03:18 +01:00
4c33653369Merge branch 'task1/saleh/priority-donation-refactoring' into 'master'
Demetriades, Themis
2024-10-25 15:57:22 +00:00
c2414ec54dAdd priority_less for comparing threads based on priority and Refactor sema up to use list_max for clarity
sBubshait
2024-10-25 16:04:55 +01:00
30ab3ae861Update thread_create to only yield CPU to the new thread if necessary
sBubshait
2024-10-25 15:47:19 +01:00
81309dcda9Refactor sema_up to follow PintOS styling of if statements
sBubshait
2024-10-25 15:44:56 +01:00
bbb62d2ee7Merge branch 'gleb/fix-non-busy-sleep-bug' into 'master'
Demetriades, Themis
2024-10-25 14:19:36 +00:00
f8bdd30f09Merge branch 'gleb/bsd-priority-donation' into 'master'
Demetriades, Themis
2024-10-25 14:19:18 +00:00
869571108d
Remove from sleeping_threads immediately, instead of when thread is scheduledGleb Koval2024-10-25 14:10:59 +01:00
6e072a557f
Allow priority donation with BSD scheduler. - Recalculate priority with donations after BSD priority updates - Remove mlfqs checks from lock_acquireGleb Koval2024-10-25 14:03:55 +01:00
af31968e67Merge branch 'gleb/fix-bsd-ready-list-order' into 'master'
Saleh Bubshait
2024-10-25 08:32:08 +00:00
093c6efd30
Re-sort ready_list when priorities update + PRI_UPDATE_FREQ - PRI_UPDATE_FREQ is a separate value from TIME_SLICE, they just happen to be set the same.Gleb Koval2024-10-25 09:13:19 +01:00
c4cefbc2d5Merge branch 'merged-complete' into 'master'
sb3923
2024-10-24 22:15:24 +00:00
b88baede64rename recent_cpu update function
EDiasAlberto
2024-10-24 22:45:49 +01:00
7d196ffc57adjust spacing around brackets to fit styling conventions
EDiasAlberto
2024-10-24 22:30:38 +01:00
176750282fMerge branch 'BSD-merged' into 'master'
Dias Alberto, Ethan
2024-10-23 16:34:39 +00:00
ed11c61f87Merge branch 'master' into 'BSD-merged', fixing merge conflicts
Dias Alberto, Ethan
2024-10-23 16:30:24 +00:00
0cbae2a2e5Merge branch 'task1/priority-donation' into 'master'
Dias Alberto, Ethan
2024-10-23 16:15:44 +00:00
95386971e2Update lock_release to disable interrupts in critical sections w/ S
Themis Demetriades
2024-10-23 16:45:42 +01:00
4879775d0bUpdate donate priority to add an assertion that intrrupts are disabled, w/ T
sBubshait
2024-10-23 16:32:40 +01:00
6223846fdeUpdate lock_acquire to disable interrupts to eliminate race-conditions, w/ T
sBubshait
2024-10-23 16:30:38 +01:00
f9d82c92deUpdate thread_recalculate_priority to disable interrupts preventing race conditions for access to donors and priorities w/ S
Themis Demetriades
2024-10-23 16:16:25 +01:00
25ca7b6522Merge branch 'task1/themis/priority-donation' into 'task1/priority-donation'
Demetriades, Themis
2024-10-23 15:03:07 +00:00
5f8dea21beFix donate_priority to disable interrupts for entire update of possibly-ready donatee's priority
Themis Demetriades
2024-10-23 14:10:48 +01:00
b0074c80f0Refactor ready_list_reinsert to require being called with interrupts disabled
Themis Demetriades
2024-10-23 13:51:07 +01:00
2cd4da17a4Refactor donate_priority to only allow for the current thread to donate its priority
Themis Demetriades
2024-10-23 13:42:36 +01:00
a875d5fcb4Update donate_priority to only attempt to sort position of the donee that isn't waiting for a lock
Themis Demetriades
2024-10-23 13:29:45 +01:00
d82176a2e2Refactor lock release to follow PintOS indent style and use list functoins, w/ T
sBubshait
2024-10-22 22:52:29 +01:00
7aec2e6862Refactor donate_priority to include comments explaining its purpose and logic w/ S
Themis Demetriades
2024-10-22 21:15:30 +01:00
78c6fd36e3Refactor sema_up to add comments for clarity, w/ T
sBubshait
2024-10-22 21:04:14 +01:00
48104b3a41Refactor cond_signal to add comment clarifying the logic w/ S
Themis Demetriades
2024-10-22 20:57:18 +01:00
5549b9c0cbRefactor thread recalculate priority to add comments for clarity, w/ T
sBubshait
2024-10-22 20:52:52 +01:00
bf6104200cRefactor thread set priority to remove unused variable and add comment, w/ T
sBubshait
2024-10-22 20:47:34 +01:00
6983ccdd3bUpdate thread_get_priority description comment to be more specific w/ S
Themis Demetriades
2024-10-22 20:41:44 +01:00
fc1691f994Refactor thread.h to remove superfluous thread priority comparison function w/ S
Themis Demetriades
2024-10-22 20:36:28 +01:00
244db41434Update condvar to use linear search due to changes in priority from donations, w/ T
sBubshait
2024-10-22 20:25:13 +01:00
21cbfc9fe0Implement transfer of orphaned donors when releasing lock w/ S
Themis Demetriades
2024-10-22 20:06:21 +01:00
d9b9572631Fix Bug in recalculating priority, uses 'elem' instead of 'donor_elem', w/ T
sBubshait
2024-10-22 19:49:53 +01:00
f10514f4ccUpdate priority_more comment description to specify which list_elem member it is compatible with
Themis Demetriades
2024-10-22 18:59:19 +01:00
dae5b0d097Update semaphore priority scheduling to use linear search on unordered list w/ S
Themis Demetriades
2024-10-20 22:50:31 +01:00
840df8af78Fix bug in donate_priority that wouldn't update the list of donors w/ S
Themis Demetriades
2024-10-20 22:29:20 +01:00
7f7b1648cdFix indentation in recalculate priority to match pintos style, w/ T
sBubshait
2024-10-20 22:28:29 +01:00
44de31c0ffFix Bug in Implementation of recalculate priority setting base priority, w/ T
sBubshait
2024-10-20 20:54:48 +01:00
afcb12cef0Reformat thread priority changing functions to follow style w/ S
Themis Demetriades
2024-10-20 20:38:28 +01:00
b1dba1a0bdAdd implementation for recalculate effective priority, w/ T
sBubshait
2024-10-20 20:37:03 +01:00
8e20884a23Update releasing of locks to update donation information w/ S
Themis Demetriades
2024-10-20 20:17:27 +01:00
ee0cf632b9Fix attempt to donate priority within lock acquisition w/ S
Themis Demetriades
2024-10-20 19:45:05 +01:00
343ac55d37Implement priority donation helper function with propagation, w/ T
sBubshait
2024-10-20 19:42:35 +01:00
f98e4bc81cUpdate lock_acquire to attempt donation of priorities, w/ S
Themis Demetriades
2024-10-20 19:19:43 +01:00
5a651f1279Update implementation of thread set priority to account for donations, w/ T
sBubshait
2024-10-20 18:06:07 +01:00
fcc8cbb71eImplement initialization of new threads to track donation information, w/ S
Themis Demetriades
2024-10-20 17:11:44 +01:00
8b1e0b9559Add donation-related information to the thread structure, w/ T
sBubshait
2024-10-20 17:04:14 +01:00