How can I write a lock free structure?

后端 未结 21 1827
忘了有多久
忘了有多久 2020-12-13 12:57

In my multithreaded application and I see heavy lock contention in it, preventing good scalability across multiple cores. I have decided to use lock free programming to solv

21条回答
  •  天涯浪人
    2020-12-13 13:32

    Use an existing implementation, as this area of work is the realm of domain experts and PhDs (if you want it done right!)

    For example there is a library of code here:

    http://www.cl.cam.ac.uk/research/srg/netos/lock-free/

提交回复
热议问题