{ylaoP.}lh,Hk~v\6Z-[}d$rf^T(Tߦi!"L[̇YLڧ5kz2arqp.u;daLƁv_@/IkH+d|eH4n`~jQt y&ZNR{+}fs[_]M9rUM*B3cNaċ489|xtR'9qK?q{:G-;d' S|D48d9)T*be/F)^}8 'K4chTiEb'PC5ok"coۙ.G uhrx.4h['Ri,9D9ҰYSz-kp2Ҵ~z^$FWW.Q W LY/*E| >O-K(XE'*amily: courier, fixed, monospace; padding: 5px; border-width: 1px; }
Zwyke procesy maj priorytety dynamiczne z zakresu 100..139,
obliczane
wg wzoru:
priorytet = 120 - nice.
Dodatkowo promuje si procesy interaktywne (interaktywno procesu
mierzy si na bieco, jej wpyw na priorytet waha si w granicach
-5..5).
int idx;/* 2. */
struct list_head queue;
struct task_t next;
struct prio_array_t *array;
idx = sched_find_first_bit(array->bitmap); /* 1. */
queue = array->queue + idx;
next = list_entry(queue->next, task_t, run_list);
runqueue_t *rq = this_rq();
task_t *p = current;
if (!--p->time_slice) { f2z췚b#L?cGIJUS