Among some other ways, there are these two ways to get queues in GCD
:
dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_get_main_queue();
If I'm not completely wrong, the "main queue" is executing on the main thread and is good for "callback" blocks which execute UI work.
Does this mean a "global queue" is one that runs on a background thread?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…