Dispatch Queues

  • Private Concurrent vs. Global Dispatch with say qos = .userInitiated
    I suppose with global . . . it will match concurrent activities with the hardware . . . ? Isn’t it “better” to leave things to whatever entity that takes care of it? As opposed to using a private concurrent queue? What’s the use case?

  • Please see attached playground - when would using a DispatchWorkItem make a difference / preferred?DispatchQ.playground.zip (1.5 KB)

@lganti Please check out the episodes about dispatch queues and dispatch work items when you get a chance:

https://www.raywenderlich.com/9461083-ios-concurrency-with-gcd-and-operations/lessons/3

https://www.raywenderlich.com/9461083-ios-concurrency-with-gcd-and-operations/lessons/4

I hope they help!

1 Like

This topic was automatically closed after 166 days. New replies are no longer allowed.