By: Andrey (andrey.semashev.delete@this.gmail.com), April 4, 2021 4:58 am
Room: Moderated Discussions
sr (nobody.delete@this.nowhere.com) on April 4, 2021 12:17 am wrote:
> I agree with those points, but transactional memory isn't exclusive to locking. So if only hardware
> atomicity check is needed then take the lock and do transaction. And if transaction is progressed
> and there will be need to use global variable that is used constantly by other threads take the
> lock in middle of transaction instead of letting whole transaction to abort.
Taking the lock will abort the transaction.
> I agree with those points, but transactional memory isn't exclusive to locking. So if only hardware
> atomicity check is needed then take the lock and do transaction. And if transaction is progressed
> and there will be need to use global variable that is used constantly by other threads take the
> lock in middle of transaction instead of letting whole transaction to abort.
Taking the lock will abort the transaction.