• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Newbie thread question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Newbie thread question (From: "McLaughlin, Michael P." <email@hidden>)

  • Prev by Date: Newbie thread question
  • Next by Date: Max # of editor windows is now 4?
  • Previous by thread: Newbie thread question
  • Next by thread: Re: Newbie thread question
  • Index(es):
    • Date
    • Thread