Transactional Memory ™ is one of the solutions to synchronization in the concurrency. It is different from locking. This mechanism is basically lock-free. In some cases, it can bring better performance and make people write better and easier programs. As the hardware gradually supports related mechanisms, the time to make this technology widely used may be approaching. So I want to share with you some of my current understanding and experiments. At the same time, I will try to show you its implementation.
About Mars Cheng
A normal programmer. Living and working in Hsinchu with his lovely wife, two cats and two dogs.