How do you implement Software Transactional Memory?

后端 未结 5 1868
渐次进展
渐次进展 2021-02-01 18:49

In terms of actual low level atomic instructions and memory fences (I assume they\'re used), how do you implement STM?

The part that\'s mysterious to me is that given s

5条回答
  •  野的像风
    2021-02-01 18:53

    GHC's STM implementation is described in section six of:

    Composable Memory Transactions. Tim Harris, Simon Marlow, Simon Peyton Jones, Maurice Herlihy. PPoPP'05: ACM SIGPLAN Symposium on Principles and Practice of Parallel Programming, Chicago, Illinois, June 2005

    And section five of:

    Transactional memory with data invariants. Tim Harris, Simon Peyton-Jones. March 2006 TRANSACT '06

提交回复
热议问题