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:48 pm, Rick Jones <rick.jon...@hp.com> wrote:

> So, it is ok to post single-byte reads to a stream socket?-)

That's several orders of magnitude worse than what he's doing.
Consider a typical packet of data received, how many system calls he
needs, and how many system calls that needs.

There is, also, one other huge difference. Posting larger reads
doesn't change when your process is made ready-to-run. Whether you try
to read one byte or one thousand, you will become ready-to-run at the
same time. He is looking for a way to change when his process becomes
ready-to-run -- he's looking to make it later. That wastes CPU time he
could be using to process the packet(s) he has already received.

DS

Report this thread to moderator Post Follow-up to this message
Old Post
David Schwartz
03-21-08 03:13 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 04: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.