I demand that Matthias Schwarzott may or may not have written... > in the last days I come accross a strange phenomen: One vdr thread eats up > to 45% cpu on my Pentium3 700Mhz system when I did nothing with my vdr > except live viewing on a ff card without transfer mode. Some digging > resulted in this: > - The thread is the section handler thread. > - The cpu-load depends on the transponder currently watching on. [snip] > Attached is a Patch to simply add one sleep(1) inte the loop before the > poll. This results in reducing the cpu-load from 45% to 1.3%. And it does > not seem to lose any sections. If you replace that sleep(1) with sched_yield(), do you see the same effect wrt CPU load? -- | Darren Salt | nr. Ashington, | d youmustbejoking,demon,co,uk | Debian, | Northumberland | s zap,tartarus,org | RISC OS | Toon Army | @ | We've got Shearer, you haven't Microsoft. What Shall We Tell You That You Can Do Today?