Re: Network Programming Models (was OTCountFreeBytes?)
Re: Network Programming Models (was OTCountFreeBytes?)
- Subject: Re: Network Programming Models (was OTCountFreeBytes?)
- From: Becky Willrich <email@hidden>
- Date: Mon, 4 Feb 2002 12:19:30 -0800
Is there something wrong with using the timeout parameter to force it
to return at regular intervals to pick up your instructions??
Only the CPU spin on the thread, and the difficulty in choosing a
reasonable timeout. I must be prepared to block for up to the timeout;
if I choose a long timeout, I delay whatever the pending work is by that
amount. If I choose a short timeout, I end up consuming CPU spinning in
a tight while loop. It's a quite manageable problem (after all, people
have been using select quite effectively for years), but personally, I
prefer to work off a run loop of some kind.
REW