Lock monitoring method and device, equipment and storage medium
The invention discloses a lock monitoring method and device, equipment and a storage medium. The method comprises the following steps: acquiring request lock information, wherein the request lock information comprises a thread identifier of a request lock and a lock identifier; before the target app...
Gespeichert in:
Hauptverfasser: | , , , , , , , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention discloses a lock monitoring method and device, equipment and a storage medium. The method comprises the following steps: acquiring request lock information, wherein the request lock information comprises a thread identifier of a request lock and a lock identifier; before the target application program releases the lock, lock release information is obtained, and the lock release information comprises a thread identifier and a lock identifier; storing the request lock information to a request lock stack corresponding to a thread identifier in the request lock information; obtaining a target request lock stack corresponding to a thread identifier in the release lock information; if the lock identifier in the release lock information is different from the lock identifier of the stack top of the target request lock stack, alarm information is generated, by means of the technical scheme, the lock use condition can be monitored and analyzed, the deadlock problem possibly existing in the application pro |
---|