Re: Using NSThreads in command-line apps
Re: Using NSThreads in command-line apps
- Subject: Re: Using NSThreads in command-line apps
- From: Jens Alfke <email@hidden>
- Date: Thu, 15 May 2008 18:02:26 -0700
On 15 May '08, at 3:40 PM, ben syverson wrote:
I know it's kevent "style," but unless it's actually kevent (or a
similar kernel-level event system) under there, I have my doubts
about the performance under heavy load.
I don't think the difference will be noticeable, if indeed there is
any, unless you're trying to write The World's Fastest Web Server.
Usually the important factor is how many hours it takes you to write
and debug the code, not how many microseconds the program takes to
handle a request.
The thing is, by running your own blocking loops, you're going against
the grain of the way the Cocoa frameworks do things. It doesn't mean
you can't do it that way, but you won't be able to use NSRunLoop or
anything built on it on threads where you're doing that.
—Jens
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden