1

Hi I learned that lock free programming is able to give each thread freedom to decide its own progress. In other words, a thread’s progress is not affected by other threads if it chooses so.

But let’s step aside from flexibility and only talks about performance, meaning how fast the entire program runs, then which one is faster under what conditions: lock free programming or lock/mutex based programming?

Thanks.

Dachuan Huang
  • 115
  • 1
  • 8
  • 2
    Does this answer your question? [When are lock free data structures less performant than mutual exclusion (mutexes)?](https://stackoverflow.com/questions/1585818/when-are-lock-free-data-structures-less-performant-than-mutual-exclusion-mutexe) – Peter Cordes Apr 16 '22 at 20:50
  • 1
    Another near-duplicate: [When should we choose locking over lock-free data structures"](https://stackoverflow.com/q/64938715) – Peter Cordes Apr 16 '22 at 20:53

0 Answers0