Concurrency Control Method and Apparatus
Embodiments of the present disclosure provide concurrency control, including receiving a plurality of transaction operation requests, where each transaction operation request includes operation object information and operation type information, the operation object information is used to indicate an...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | Embodiments of the present disclosure provide concurrency control, including receiving a plurality of transaction operation requests, where each transaction operation request includes operation object information and operation type information, the operation object information is used to indicate an operation object of the transaction operation request, and the operation type information includes a write operation or a read operation, making a lock-use application according to the at least two transaction operation requests, and determining, according to a requested lock status and a current lock status in the lock-use application, whether the application is passed, and if the application is passed, determining to perform concurrency control on the at least two transaction operation requests by using the requested lock status, where the requested and current lock statuses includes at least three modes: a shared read mode, a shared write mode, and an exclusive mode. |
---|