3 ms·
No. GCD is not 'basic threads', GCD is a concurrency model based on executing blocks (closures) on queues. Threads are abstracted away by GCD. NSOperationQueue
by stevetrewick 11y ago
No. GCD is not 'basic threads', GCD is a concurrency model based on executing blocks (closures) on queues. Threads are abstracted away by GCD. NSOperationQueue abstracts even further to provide a higher level concurrency model. Or you can go down the stack to NSThread to actually get your 'basic threads'.
The programmer gets to choose the level of abstraction appropriate to the task in hand.
- bsaul 11y agolet's say gcd is still much lower level than channels+select or asyncio+single run loop or actors+shared nothing. At the minimum, i would say it's much more flexible but also much less opinionated.