Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

Re: socket programming using MSG_WAITALL for receiving multicast
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

Report this thread to moderator Post Follow-up to this message
Old Post
David Schwartz
03-21-08 12:15 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Unix Programming archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 02:14 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.