I want t开发者_StackOverflowo synchronize one queue among two threads. Such as one thread performs enqueue and other performs dequeue. Any ideas??
Cocoa class like NSArray or NSMutableArray is non thread safe, you have to use object NSLock class to make them thread safe.
精彩评论