Merge implementations of priority scheduling by Themis and Saleh #11

Closed
td1223 wants to merge 14 commits from task1/priority-scheduling into task1/merged/priority-scheduling
4 changed files with 7 additions and 131 deletions
Showing only changes of commit 4ed64cf173 - Show all commits

View File

@@ -354,6 +354,7 @@ thread_foreach (thread_action_func *func, void *aux)
void void
thread_set_priority (int new_priority) thread_set_priority (int new_priority)
{ {
ASSERT (PRI_MIN <= new_priority && new_priority <= PRI_MAX);
thread_current ()->priority = new_priority; thread_current ()->priority = new_priority;
} }