您的位置:首页 > 其它

GCD dispath_async dispath_sync 各种混合使用测试情况

2013-05-03 13:48 423 查看
使用 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 先进先出



内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: