ios – Objective-C cpu缓存行为
更新1Inter-threadCommunication中的文档保证共享变量可以用于线程间通信.Anothersimplewaytocommunicateinformationbetweentwothreadsistouseaglobalvariable,sharedobject,orsharedblockofmemory.在这种情况下,这是否不是必需的?这与MemoryBarriersandVolatileVariables中的文档冲突:Ifthevariableisvisiblefromanother