What is transactional memory?

前端 未结 3 1509
梦谈多话
梦谈多话 2021-02-04 04:24

I\'m confused because from reading the wiki page it seems like just having a checkValidate and commit system for loads and stores. Is the purpose to solve synchronization proble

3条回答
  •  面向向阳花
    2021-02-04 05:09

    From the gcc Wiki:

    In general, implementations come in two forms: a Software Transactional Memory 
    (STM) system uses locks or other standard atomic instructions to do its job. 
    A Hardware Transactional Memory (HTM) system uses multi-word synchronization 
    operations of the CPU to implement the requirements of the transaction directly 
    (e.g., see the Rock processor). Because most HTM systems are likely to be best
     effort facilities (i.e., not all transactions can be executed using HTM), 
    practical TM implementations that incorporate HTM also have a STM component 
    and are thus termed Hybrid Transactional Memory systems. 

提交回复
热议问题