美文网首页
Thread Safe

Thread Safe

作者: IreneWang1988 | 来源:发表于2016-05-03 16:17 被阅读0次

    Thread Safe

    Thread safe code can be safely called from multiple threads or concurrent tasks without causing any problems (data corruption, crashing, etc). Code that is not thread safe must only be run in one context at a time. An example of thread safe code is NSDictionary. You can use it from multiple threads at the same time without issue. On the other hand, NSMutableDictionary is not thread safe and should only be accessed from one thread at a time.

    相关文章

      网友评论

          本文标题:Thread Safe

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