Meet the affairs of the two-phase locking protocol

1. within the same transaction needs to lock on multiple data, all locking operations can only be done at the same stage, at this stage, does not allow for data items that have been locked unlock operation, that is plus lock and unlock operations can not cross execution (within the same transaction) .

2.  All comply with locks at both ends of the transaction agreement, the results of its parallel execution must be correct

Guess you like

Origin www.cnblogs.com/sjxbg/p/11609958.html