Unlock instant, AI-driven research and patent intelligence for your innovation.

Thread lock management system, method and equipment and readable medium

A technology of management system and management method, which is applied in the field of thread lock management system, can solve frequent creation and other problems, achieve the effect of avoiding repeated reconstruction and destruction, increasing reusability, and facilitating subsequent calls

Active Publication Date: 2022-05-24
ZWCAD SOFTWARE CO LTD
View PDF12 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, during the application of this method, even in the same code segment, the lock must be acquired every time it is used, which may take extra time
And in order to prevent resources from being accessed at the same time, only one thread owns the lock, so when the thread acquires the lock, it has to wait for the previous thread to release the lock. If you want to access the resource multiple times, you need to repeatedly acquire and release the lock, which may involve frequent creation and destruction of object locks

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Thread lock management system, method and equipment and readable medium
  • Thread lock management system, method and equipment and readable medium
  • Thread lock management system, method and equipment and readable medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] In order to make the objectives, technical solutions and effects of the present invention clearer and clearer, the present invention will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

[0041] It should be understood by those skilled in the art that the foregoing general description and the following detailed description are exemplary and illustrative of specific embodiments of the present invention and are not intended to limit the present invention.

[0042] The terms "comprising", "comprising" or any other variation thereof herein are intended to cover non-exclusive inclusion, such that a process or method that includes a list of steps includes not only those steps, but may include not explicitly listed or inherent to such a process or method other steps. Likewi...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to the field of resource scheduling, in particular to a thread lock management system, method and equipment and a readable medium. A thread lock management system includes: a management pool having a first container and a second container; the first container is used for storing a thread lock in use and storing a corresponding relationship between a code and the thread lock; the second container is used for storing a plurality of blank thread locks; and the processing unit calls a corresponding thread lock if the first code exists in the first container. When a system needs to call a certain thread lock, preferentially querying whether the thread lock corresponding to the first code is used in the first container, if so, directly calling, if not, taking a blank thread lock from the second container for calling, and after the calling succeeds, taking the thread lock corresponding to the first code from the second container for calling; if yes, the first code and the thread lock are matched and stored in the first container, subsequent calling is facilitated, the reusability of the thread lock is improved, and the thread lock is prevented from being repeatedly reconstructed and destroyed.

Description

technical field [0001] The present invention relates to the field of resource scheduling, and in particular, to a thread lock management system, method, device and readable medium. Background technique [0002] For code segment or resource access, thread locks are mostly used to avoid simultaneous access. When the program is very large or the number of objects is large, thread locks will be used in quite a few places. Frequent creation and destruction of locks will bring performance loss, especially Yes, if each object has a built-in lock, there will be a higher memory footprint. [0003] The patent document with the application number of 202011039645.8 discloses a method and an apparatus for protecting resources through an object lock. A specific implementation of the method includes: in response to receiving an access request to the target resource, associating a new object lock for the value of the target resource, and initializing attribute information of the new object...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/52
CPCG06F9/526
Inventor 吴正宇李宁陈清锋孙凌云
Owner ZWCAD SOFTWARE CO LTD