摘要
软件在设计开发过程中,都会考虑同时执行多个任务的能力,需要通过多线程的技术来实现。同样在iOS系统中,应用软件也需要具有并发执行多个任务的能力。文章内容从多线程的概率出发,主要介绍了iOS系统中使用最广泛的三种多线程技术,即NSThread、GCD、NSOperation。并分别对三种技术的使用做了进一步的研究与说明,介绍了各个多线程技术在使用过程中的一些优缺点,以及开发人员在实际应用过程中需要注意的地方。对从事iOS软件编程方面对多线程技术存在困惑的人具有一定的帮助和指导作用。
Software in the design and development process, will consider the ability to perform multi-thread tasks at the same time,which requires a multi-thread technology to achieve. In the iOS system, application software also need to be capable of concurrent execution of multi-thread tasks. In this paper, starting from the probability of multi-thread, mainly introduced the iOS system, the most widely used three kinds of multi-thread technology in namely NSThread, the GCD and NSOperation. And the use of three kinds of technology to do the further research and explanation, introduces some advantages and disadvantages of various multithread technology in the process of using, and also developers need to pay attention to in the process of actual use. To engage in iOS software programming for multi-thread technology is confused people have certain help and guidance.
出处
《电脑知识与技术(过刊)》
2017年第3X期78-80,共3页
Computer Knowledge and Technology