251 struct sched_param param;
255 pclass = SCHED_OTHER;
265 prio = sched_get_priority_min(pclass);
266 ret = pthread_getschedparam(
MAIN_thread, &p, ¶m);
267 if( (p == SCHED_OTHER) || (pclass == SCHED_OTHER) )
268 param.sched_priority = prio;
269 ret = pthread_setschedparam(
MAIN_thread, pclass, ¶m);
272 ret = pthread_getschedparam(
IO_thread, &p, ¶m);
273 if( (p == SCHED_OTHER) || (pclass == SCHED_OTHER) )
274 param.sched_priority = prio;
275 ret = pthread_setschedparam(
IO_thread, pclass, ¶m);
278 ret = pthread_getschedparam(
ALRM_thread, &p, ¶m);
279 if( (p == SCHED_OTHER) || (pclass == SCHED_OTHER) )
280 param.sched_priority = prio;
281 ret = pthread_setschedparam(
ALRM_thread, pclass, ¶m);