[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [rtl] Problem with multiple threads



On Mon, 25 Jun 2001, Ken Ramey wrote:

[...]
>   sched_param.sched_priority = 100;
>   pthread_attr_setschedparam(&attr, &sched_param);

Is 100 an allowed priority? I thought 99 was the maximum...
Anyway, it's better to use relative indications of priorities, e.g.,

   sched_param.sched_priority = sched_get_priority_max(SCHED_FIFO)-3;

Herman

-- 
"I decry the current tendency to seek patents on algorithms. There are
 better ways to earn a living than to prevent other people from making
 use of one's contributions to computer science."  D.E. Knuth, TAoCP 3