阅读背景:

有什么方法可以在不创建伪NSThread的情况下进入Cocoa多线程模式吗?

来源:互联网 

Apple Threading guide says:

苹果线程指导说:

For multithreaded applications, Cocoa frameworks use locks and other forms of internal synchronization to ensure they behave correctly. To prevent these locks from degrading performance in the single-threaded case, however, Cocoa does not create them until the application spawns its first new thread using the NSThread class. If you spawn threads using only POSIX thread routines, Cocoa does not receive the notifications it needs to know that your application is now multithreaded. When that happens, operations involving the Cocoa frameworks may destabilize or crash your application.Fo




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: