• 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: NSOperation Efficiency
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSOperation Efficiency


  • Subject: Re: NSOperation Efficiency
  • From: Mike Abdullah <email@hidden>
  • Date: Tue, 04 Dec 2012 22:41:33 +0000

On 4 Dec 2012, at 19:01, "Gerriet M. Denkmann" <email@hidden> wrote:

>
> On 5 Dec 2012, at 01:55, Mike Abdullah <email@hidden> wrote:
>
>> If your operations are purely CPU-bound, the whole point of GCD is to manage this for you. With the default number of concurrent operations, NSOperationQueue does exactly that. Have you tried with that setting?
>
> I have, and it makes my app unresponsive (i.e unusable) until all operations have finished.
> Triggered by making other app, active, then again my app.

That suggests your operations aren't purely CPU-bound then. They're getting stuck waiting on something else. When that happens, GCD sees it as wasted CPU time so starts off the next bit of work anyway.


_______________________________________________

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

References: 
 >NSOperation Efficiency (From: "Gerriet M. Denkmann" <email@hidden>)
 >Re: NSOperation Efficiency (From: Mike Abdullah <email@hidden>)
 >Re: NSOperation Efficiency (From: "Gerriet M. Denkmann" <email@hidden>)

  • Prev by Date: Document Types, imported and exported uti's
  • Next by Date: Re: How to capture a video stream
  • Previous by thread: Re: NSOperation Efficiency
  • Next by thread: Re: NSOperation Efficiency
  • Index(es):
    • Date
    • Thread