Grand Central Dispatch (GCD) provides a simple and robust mechanism for concurrent and asynchronous operations, primarily in Apple operating systems (e.g., iOS, macOS, watchOS, and tvOS), but also FreeBSD and MidnightBSD.
I'm struggling to fully understand the concurrent and serial queues in GCD. I have some issues and hoping someone can …
ios multithreading concurrency grand-central-dispatchI have a method that accepts a block and a completion block. The first block should run in the background, …
objective-c cocoa-touch ios6 objective-c-blocks grand-central-dispatchCan anyone explain with really clear use cases what the purpose of dispatch_sync in GCD is for? I can't …
cocoa ios ios4 grand-central-dispatchI have a method which should support being called from any queue, and should expect to. It runs some code …
iphone ios objective-c grand-central-dispatch dispatchWhat is the new syntax for dispatch_once in Swift after the changes made in language version 3? The old version …
swift grand-central-dispatchI've created a serial queue like this: dispatch_queue_t _serialQueue = dispatch_queue_create("com.example.name", DISPATCH_QUEUE_SERIAL); …
ios multithreading grand-central-dispatchI'm using a subclass of UIManagedDocument to use Core Data in my project. The point is for the subclass to …
ios objective-c grand-central-dispatchI have method which makes UI changes in some cases. For example: -(void) myMethod { if(someExpressionIsTrue) { // make some UI …
objective-c multithreading grand-central-dispatch nsthreadAmong some other ways, there are these two ways to get queues in GCD: dispatch_get_global_queue(DISPATCH_QUEUE_…
iphone ios concurrency grand-central-dispatchI'm just playing around with GCD and I've written a toy CoinFlipper app. Here's the method that flips the coins: …
objective-c cocoa multithreading grand-central-dispatch