Previous | Next --- Slide 33 of 64
Back to Lecture Thumbnails
PandaX

It seems that transactional memory is the future trend.

What are the disadvantages of transactional memory?

mallocanswer

@PandaX, transaction memory can be implemented in hardware and software. Hardware transaction memory sometimes will have restrictions on operands for example some instructions can only operate data that is the size of a native machine word. Software transaction memory may be more flexible. However some operations cannot be undone (such as IO) so they cannot be involved into the transaction.

chuangxuean

This slide seems to suggest that TM has better scalability than locking over a growing number of cores. However, it seems that with multiple transactions committing and causing multiple others to abort, this could be a huge performance problem with many threads as well, no?

eknight7

@chuangxuean Considering optimistic detection, TM could be well optimized right?