HTM/STM and Scheduling

HTM/STM and Scheduling

Hi,

I have a question about Hardware and Software Transactional Memory.

Given the types of versioning (eager and lazy) and conflict detection (optimistic and pessimistic) and let's say that 2 or more threads are performing a transaction that write/read the same memory location.

The scheduling of the threads could affect the ability of detect a conflict? Which combination of versioning and conflict detection would be better to always catch the conflicts?

Hope my question is clear.

Thanks.
Best Regards,
Simone

2 帖子 / 0 全新
最新文章
如需更全面地了解编译器优化,请参阅优化注意事项

A Pessimistic control and Eager versioning would do good. As on a successful committ, the Eager versioning transaction would be updated directly into the address would perform a undo operation which avoids the concurrency conflict as the locations are locked down.

and the Pessimistic control on transactions would provide a lock down on every place of location being involved in transaction closing a way for other users to change the logs.

Hope you found it useful.

发表评论

登录添加评论。还不是成员?立即加入