Grand Central Dispatch (GCD) and Dispatch Queues

https://www.appcoda.com/grand-central-dispatch/

here you can find detail explanation about GCD.

Notes: Asyn and sync is related between multiple queues and concurrent and is related to work items inside particular queue.

if compiler see there is asyc queue it will start executing that on background thread according to QoS. but if there is sync queue before async then only after executing the sync queue async queue will execute.

If queue is not concurrent the work items in same queue will execute one after another. but if queue is concurrent all work items will work parallely

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s