Re: NSThread to NSOperation and blockUntil
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