Aman Gupta
Aman Gupta

Reputation: 433

Which of the following is fastest in objective-C?

  1. @synchronized
  2. Explicit locking
  3. Condition locking
  4. Mutex implicit locking

Upvotes: 3

Views: 2046

Answers (1)

d.lebedev
d.lebedev

Reputation: 2303

Plase, read this article, in which the speeds of the methods are compared

OSSpinLock and POSiX Mutex Lock are the fastest

Upvotes: 3

Related Questions