Method and device for implementing read-write lock reentry, terminal and storage medium
US11119832B2 · kind B2 · utility
Assignee
Inventors
Key dates
| Filing date | Aug 27, 2019 |
| Grant date | Sep 14, 2021 |
| Priority date | — |
| Expiry date | Jan 23, 2040 |
Classification
- Technology area (CPC G)Physics
- CPC primaryG06F9/5005
- WIPO fieldComputer technology
- WIPO sectorElectrical engineering
Abstract
The embodiments of the present disclosure provide a method and a device for implementing read-write lock reentry, a terminal and a storage medium. The method includes: receiving a write lock request of a thread to a target resource; in response to determining that the target resource is in a write-lock-exclusive state, acquiring a historical write-lock thread to the target resource that is in the write-lock-exclusive state; in response to determining that the thread is identical to the historical write-lock thread, adding a new lock of the thread to the target resource.
Source: USPTO / EPO open patent data. Objective bibliographic and citation counts.