Scheduling: prioridad dinámica sched.c::goodness() /* calcular la prioridad del proceso */ int goodness(*p, *prev, this_cpu) { weight = p->counter; if (weight) { if (p->processor == this_cpu) weight += PROC_CHANGE_PENALTY; if (p->mm == prev->mm) weight += 1; weight += 20 - p->nice; } return weight; }