NSTread

作者: 夜雨聲煩_ | 来源:发表于2017-04-19 11:08 被阅读0次

    概念

    An NSThread object controls a thread of execution. Use this class when you want to have an Objective-C method run in its own thread of execution. Threads are especially useful when you need to perform a lengthy task, but don’t want it to block the execution of the rest of the application. In particular, you can use threads to avoid blocking the main thread of the application, which handles user interface and event-related actions. Threads can also be used to divide a large job into several smaller jobs, which can lead to performance increases on multi-core computers.

    原文

    相关文章

      网友评论

          本文标题:NSTread

          本文链接:https://www.haomeiwen.com/subject/hlvczttx.html