//聲明一個(gè)串行隊(duì)列 優(yōu)先級(jí)low
dispatch_queue_t serialQueue=
dispatch_queue_create("serial_queue",DISPATCH_QUEUE_SERIAL);
dispatch_set_target_queue(serialQueue,dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW,0));
//聲明一個(gè)并行隊(duì)列 優(yōu)先級(jí)low
dispatch_queue_t concurrencyQueue = dispatch_queue_create("concurrentcy_queue",DISPATCH_QUEUE_CONCURRENCY);
dispatch_set_target_queue(concurrencyQueue,dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_LOW,0));
串行隊(duì)列 內(nèi)執(zhí)行順序?yàn)橛行?因?yàn)樵谕痪€程中執(zhí)行
?并行隊(duì)列內(nèi)執(zhí)行順序?yàn)闊o序 因?yàn)樵诓煌€程中執(zhí)行