Re: NSThread to NSOperation and blockUntil
Re: NSThread to NSOperation and blockUntil
- Subject: Re: NSThread to NSOperation and blockUntil
- From: Trygve Inda <email@hidden>
- Date: Mon, 21 Mar 2016 23:33:48 -0700
- Thread-topic: NSThread to NSOperation and blockUntil
> On Mar 21, 2016, at 18:07 , Trygve Inda <email@hidden> wrote:
>>
>> I would like to move this to NSOperation and NSOperationQueue but I see no
>> way to replicate this behavior.
>
> I think the GCD/NSOperationQueue concept of “background” quality of service is
> what you want here. That would let your re-factored calculations run at full
> speed during system idle times, using multiple CPUs, until CPU resources were
> needed for something of higher quality service. At that time, your background
> calculation would be throttled back until the system goes idle again.
That is a possibility, but I still need to have the process done by a set
time (unless it simply can't do it all even at 100%).
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.
_______________________________________________
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