Re: BSD sockets ::select() performance on 10.4.9
Re: BSD sockets ::select() performance on 10.4.9
- Subject: Re: BSD sockets ::select() performance on 10.4.9
- From: Steve Checkoway <email@hidden>
- Date: Tue, 10 Apr 2007 15:45:48 -0700
On Apr 10, 2007, at 3:34 PM, Terry Simons wrote:
On Apr 10, 2007, at 3:27 PM, Steve Checkoway wrote:
On Apr 10, 2007, at 11:22 AM, Terry Simons wrote:
You could impose some sort of artificial sleep condition every now
and then to force your application to yield the CPU, but that
could cause performance issues too.
As long as there is no data to read and you are not writing, select
should block without needing any sleep.
But if your application is getting bombarded with data, select will
return often and could possibly cause the CPU to grind, right?
I suppose it could but chances are you are wanting to do something
with that data which is probably more expensive than a system call.
--
Steve Checkoway
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden