i love the 2.6 scheduler...been looking at it daily...
array = rq->active;
if (unlikely(!array->nr_active)) {
/*
* Switch the active and expired arrays.
*/
schedstat_inc(rq, sched_switch);
rq->active = rq->expired;
rq->expired = array;
array = rq->active;
rq->expired_timestamp = 0;
rq->best_expired_prio = MAX_PRIO;
} else
schedstat_inc(rq, sched_noswitch);
idx = sched_find_first_bit(array->bitmap);
queue = array->queue + idx;
next = list_entry(queue->next, task_t, run_list);
big O notations... there is lots to still know....
i love...the schedule ( ) function.
About this entry
Youre currently reading i love...the schedule ( ) function..
- Published:
- at 11:23 PM on Tuesday, August 23, 2005
- Previous:
- Older Post
- Next:
- Newer Post
0 comments: