what is transactional memory in comparison to actor model and locks
问题 What is the transactional memory in comparison to actor-based and lock-based synchronization? As far as I understand it is another mechanism of concurrency control. Or it is something completely different to actors, events, locks etc.? 回答1: Transactional Memory (TM) is a lock free synchronization methodology. In a lock based synchronization mechanism, one thread acquires the lock and enters the synchronized block whilst others wait until the lock becomes available. In TM, threads don't wait