I watched a (2 year) multithreading instructional video that said that
- NSLock instance runs 3 times faster than using @synchronized
- pthread_mutex_t is 2 times faster than an NSLock instance (effectively 6 times faster than @synchronized )
It's true? I did not find anything that claims with the authorities that this is so, but I just wanted to interview some of you at StackOverflow for your opinion and, maybe, solid evidence.
Thanks!
Although I already accepted the correct answer, future viewers of this question will find this article useful: http://perpendiculo.us/?p=133
multithreading ios objective-c cocoa-touch
ArtSabintsev
source share