Re: Newbie thread question
Re: Newbie thread question
- Subject: Re: Newbie thread question
- From: Alastair Houghton <email@hidden>
- Date: Mon, 17 Aug 2009 21:03:19 +0100
On 17 Aug 2009, at 20:51, McLaughlin, Michael P. wrote:
Could someone tell me the best Performance Tool to use to analyze
statistics
for separate threads in an NSOperationQueue-type app? I am
wondering why my
app *slows down* with 2 CPUs compared to 1 :-(
That's quite a general question and without knowing what your app is
*doing* with its two threads it's hard to be specific.
The usual reason for a slow down is if you are synchronising somewhere
between the two threads. Occasionally this might happen because of
library calls you are using, rather than it being explicit in your code.
The best thing to use is *probably* Instruments; you might, for
example, try using the Sampler instrument to look at your program.
That said, it really depends on how your application is architected.
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden