Re: NSImage drawInRect deadlock
Re: NSImage drawInRect deadlock
- Subject: Re: NSImage drawInRect deadlock
- From: Jens Alfke <email@hidden>
- Date: Tue, 09 Aug 2016 13:18:20 -0700
>> I was under the impression from the docs that macOS
>> handles the thread pool “automatically”.
GCD’s pool does use a thread per CPU core … but only as long as none of the operations run for a long time. If its entire thread pool is busy for “a while” and there are more blocks waiting in the queue, GCD will start to create more threads to keep up, rather than let the waiting threads starve.
—Jens
_______________________________________________
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