259 struct sched_param param;
263 pclass = SCHED_OTHER;
273 prio = sched_get_priority_min(pclass);
274 ret = pthread_getschedparam(
MAIN_thread, &p, ¶m);
275 if( (p == SCHED_OTHER) || (pclass == SCHED_OTHER) )
276 param.sched_priority = prio;
277 ret = pthread_setschedparam(
MAIN_thread, pclass, ¶m);
280 ret = pthread_getschedparam(
IO_thread, &p, ¶m);
281 if( (p == SCHED_OTHER) || (pclass == SCHED_OTHER) )
282 param.sched_priority = prio;
283 ret = pthread_setschedparam(
IO_thread, pclass, ¶m);
286 ret = pthread_getschedparam(
ALRM_thread, &p, ¶m);
287 if( (p == SCHED_OTHER) || (pclass == SCHED_OTHER) )
288 param.sched_priority = prio;
289 ret = pthread_setschedparam(
ALRM_thread, pclass, ¶m);