• 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: NSThread to NSOperation and blockUntil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSThread to NSOperation and blockUntil


  • Subject: Re: NSThread to NSOperation and blockUntil
  • From: Graham Cox <email@hidden>
  • Date: Wed, 23 Mar 2016 09:25:20 +1100

> On 22 Mar 2016, at 5:33 PM, Trygve Inda <email@hidden> wrote:
>
> So I need to be able to have a process done in 30 seconds for example.... At
> full speed it could be done in 4 seconds but I'd like it done with as little
> impact as possible.


So just let it run as fast as possible. The whole point of threads is to let them work as hard as they need to and the scheduler will take care of giving other stuff the time they need. If the work is self-contained, in that it isn’t blocking other code, you won’t even notice it. It sounds like you’re trying to optimise based on faulty reasoning.

—Graham



_______________________________________________

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: 
 >Re: NSThread to NSOperation and blockUntil (From: Trygve Inda <email@hidden>)

  • Prev by Date: Re: #selector noob question
  • Next by Date: Re: UIDocument with NSFileWrapper
  • Previous by thread: Re: NSThread to NSOperation and blockUntil
  • Next by thread: #selector noob question
  • Index(es):
    • Date
    • Thread