Section handler thread eating too much cpu

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

 



On Wed, May 25, 2005 at 11:43:49AM +0200, castet.matthieu@xxxxxxx 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

-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr


[Index of Archives]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Big List of Linux Books]     [Fedora Users]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux