Lines Matching refs:priority

43 // The run queue. Holds the threads ready to run ordered by priority.
71 kprintf("thread id priority name\n");
74 thread->id, thread->priority, thread->name);
89 targetPriority = gCPU[targetCPU].running_thread->priority;
93 // Choose the CPU running the lowest priority thread. Favor the current CPU
100 targetPriority = gCPU[currentCPU].running_thread->priority;
108 int32 cpuPriority = gCPU[cpu].running_thread->priority;
133 && curr->priority >= thread->next_priority;
149 thread->next_priority = thread->priority;
151 if (thread->priority != B_IDLE_PRIORITY) {
155 // a higher priority.
160 // If the target CPU runs a thread with a lower priority, tell it to
162 if (thread->priority > targetPriority) {
184 /*! Sets the priority of a thread.
188 set_thread_priority(Thread *thread, int32 priority)
190 if (priority == thread->priority)
194 thread->priority = priority;
225 // set priority and re-insert
226 thread->priority = thread->next_priority = priority;
236 // per thread priority, though.
238 if (thread->priority >= B_REAL_TIME_DISPLAY_PRIORITY)
240 if (thread->priority >= B_DISPLAY_PRIORITY)
273 && oldThread->priority != B_IDLE_PRIORITY) {
287 oldThread->id, oldThread->priority));
307 while (nextThread != NULL && nextThread->priority > B_IDLE_PRIORITY) {
320 && nextThread->priority > B_IDLE_PRIORITY) {
339 if (nextThread->priority >= B_FIRST_REAL_TIME_PRIORITY)
342 // find next thread with lower priority
345 int32 priority = nextThread->priority;
348 && priority == lowerNextThread->priority) {
354 || lowerNextThread->priority == B_IDLE_PRIORITY)
357 int32 priorityDiff = priority - lowerNextThread->priority;
362 // (twice as probable per priority level)