1, Block,
www.dreamingwish.com/article/blo… \
Blocks are similar to C function Pointers, especially in C++ 11. They are called Lambda, and differ from C functions only in two ways: A) no function name, b) with ^ (read caret), the format is ^ return value type parameter list expression, such as ^ int (int count){return count+1; }, you can also omit the return value type and argument list, as in ^{print… }; \
\
2, the GCD
www.dreamingwish.com/article/gcd… \
Grand Central Dispatch (GCD) is a relatively new solution to multi-core programming developed by Apple. It is primarily used to optimize applications to support multicore processors and other symmetric multiprocessing systems. It is a parallel task that executes on a thread pool basis. First released on Mac OS X 10.6 Snow Leopard and also available on IOS 4 and above. GCD is a very efficient and powerful alternative to technologies such as NSThread. GCD is perfectly capable of handling complex asynchronous programming problems such as data locking and resource leakage. GCD works by having a program queue up in parallel to perform a specific task on any available processor core, based on available processing resources. The task can be a function or a program segment. GCD still uses threads at a very low level, but it doesn’t require programmers to pay much attention to the details. The queue created by GCD is lightweight, and Apple states that a unit of work for a GCD should consist of 15 instructions. This means that creating a traditional thread can easily take hundreds of instructions. A task in the GCD can be used to create a work item or event source to be placed on a queue. If a task is assigned to an event source, a unit of work consisting of functions or blocks is placed in an appropriate queue. Apple believes that CDS are more efficient than the usual one-by-one way of performing tasks. \
Common methods and understanding in GCD (1)\
Blog.csdn.net/wuhanbo555/… \
Common methods and understanding of GCD (2)\
Blog.csdn.net/wuhanbo555/… \
\
Objective-c advanced programming: iOS and OS X multithreading and memory management
Turing Programming Series by Kazuki Sakamoto, Tomohiko Furumoto, Lihua Translation Publishing House, Posts and Telecommunications Press, 2013-6-1\
Blog.csdn.net/mapboo/arti… \
Blog.csdn.net/mapboo/arti… \
Blog.csdn.net/mapboo/arti… \
\
Links, iOS good book recommendations
Blog.csdn.net/libaineu200… \