Lines Matching refs:priority
42 // The run queue. Holds the threads ready to run ordered by priority.
68 kprintf("thread id priority name\n");
71 thread->id, thread->priority, thread->name);
90 && curr->priority >= thread->next_priority;
106 thread->next_priority = thread->priority;
112 if (thread->priority > thread_get_current_thread()->priority) {
119 /*! Sets the priority of a thread.
123 simple_set_thread_priority(Thread *thread, int32 priority)
125 if (priority == thread->priority)
129 thread->priority = priority;
160 // set priority and re-insert
161 thread->priority = thread->next_priority = priority;
171 // per thread priority, though.
173 if (thread->priority >= B_REAL_TIME_DISPLAY_PRIORITY)
175 if (thread->priority >= B_DISPLAY_PRIORITY)
208 && oldThread->priority != B_IDLE_PRIORITY) {
220 TRACE(("enqueueing thread %ld into run queue priority = %ld\n",
221 oldThread->id, oldThread->priority));
240 while (nextThread && nextThread->priority > B_IDLE_PRIORITY) {
251 if (nextThread->priority >= B_FIRST_REAL_TIME_PRIORITY)
254 // find next thread with lower priority
257 int32 priority = nextThread->priority;
260 && priority == lowerNextThread->priority) {
266 || lowerNextThread->priority == B_IDLE_PRIORITY)
269 int32 priorityDiff = priority - lowerNextThread->priority;
274 // (twice as probable per priority level)