GCD three types of queues:
1.The main queue: Same as the main thread function. In fact, the task that is submitted to the main queue executes in the main thread. The main queue can be obtained by calling Dispatch_get_main_queueu (). Because the main queue is associated with the main thread, this is a serial queue.
2.Global queues: The global queue is a concurrent queue and is shared by the entire process. There are three global queues in the process: High, Medium (default), low three priority to access the queue.
3. User queue: User queue (GCD does not call this queue, but does not have a specific name to describe the queue, so we call the user queue) is the function dispatch_queue_create the queue of the pieces. These queues are serial. Because of this, they can be used to complete the synchronization mechanism. A bit like a mutex in a traditional thread.
ios-oc--Multithreading Rollup