GCD dispath_async dispath_sync 各种混合使用测试情况
使用 dispath_get_global_queue 并发的情况下 源代码下载: gcdtest.zip
001 dispath_get_global_queue + dispath_async

002 dispath_get_global_queue + dispath_sync

003 dispatch_async -> call dispatch_async

004 dispatch_async -> call dispatch_sync

005 dispatch_sync -> call dispatch_sync

006 dispatch_sync -> call dispatch_async

dispath_get_global_queue 001 -- 006 爆发一下,看看大家能不能捋清楚 :)


爆发第二个 ///Serial: tasks execute one at a time in FIFO order 先进先出


爆发第三个 ///Serial: tasks execute one at a time in FIFO order 先进先出



浙公网安备 33010602011771号