《Objective-C高级编程 iOS与OS X多线程和内存管理》笔记——GCD部分

以前在iOS里面使用多线程的时候基本都会使用performSelectorInBackground,感觉用着挺好啊,这对简单的程序来说基本就够用了,不需要用到NSThread什么的,也不会想到要去用GCD。o(╯□╰)o GCD dispatch_async dispatch_async的官方文档是这么说的 Submits a block for asynchronous execution on a dispatch queue and returns immediately. void dispatch_async( dispatch_queue_t queue, dispatch_block_t block); queue The queue on which to submit the block. The queue is retained by…