views:

30

answers:

1

hi, I want to synchronize one queue among two threads. Such as one thread performs enqueue and other performs dequeue. Any ideas??

+1  A: 

Cocoa class like NSArray or NSMutableArray is non thread safe, you have to use object NSLock class to make them thread safe.

Girish Kolari