On Wed, May 25, 2005 at 11:43:49AM +0200, castet.matthieu@free.fr wrote:
sched_yield() could not work, because if vdr loop on it, the linux scheduler will think that vdr is an interactive process and will increase its priority and it will be worse.
A solution could be to use nanosleep(1) instead of sched_yield().
nanosleep within threaded programs are emulated with the help of busy loops ... you do not want this ;^)
Werner