Code Comments
Programming Forum and web based access to our favorite programming groups.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
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.