Code Comments
Programming Forum and web based access to our favorite programming groups.On Mar 20, 4:23 pm, jiangxu...@gmail.com wrote: > I am receiving high bit rate streamming data such as Video data. I > think it will be more efficient with less context switch between > kernel and user space. Don't worry, the scheduler agrees with you. When efficiency matters, there will be less context switching. > So if the kernel can accumulate more packets > before wake up the function, it should be more CPU efficient, right? Right, and that's exactly what the kernel will do, all by itself. If you test with no load, you will get lots of context switches. This is fine -- you can't save CPU in a jar to use later. As soon as the load goes up, the system will spend time doing other things and by the time your process gets to run, more packets will be accumulated as if by magic. Don't try to "fix" the scheduler. It's not broken. DS
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.