Resource locking method, computing device and computer storage medium

A technology of resources and resource information, applied in the Internet field, can solve problems such as affecting the efficiency of task processing, and achieve the effect of ensuring orderliness and flexibility

Active Publication Date: 2021-11-19
ZHANGYUE TECH CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the process of implementing the embodiments of the present invention, the inventors found that at least the following problems exist in the prior art methods: the same resource can only be accessed by one task at the same time, when there are multiple tasks that all have the need to access the same resource , it will seriously affect the efficiency of task processing

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
  • Resource locking method, computing device and computer storage medium
  • Resource locking method, computing device and computer storage medium
  • Resource locking method, computing device and computer storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Exemplary embodiments of the present invention will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present invention are shown in the drawings, it should be understood that the invention may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present invention and to fully convey the scope of the present invention to those skilled in the art.

[0024] figure 1 A flow chart of a resource locking method provided by an embodiment of the present invention is shown. The method is used for orderly and flexible locking of resources, and the method can be executed by any computing device with data processing capability. Such as figure 1 As shown, the method includes the following steps:

[0025] Step S110, for any task, determine resource information to be accessed by the task.

[0026] W...

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 discloses a resource locking method, a computing device and a computer storage medium. The method includes: for any task, determining resource information to be accessed by the task; obtaining a path corresponding to the resource according to the resource information to be accessed; querying Whether the number of sub-paths under the path in the coordination service system is less than the access restriction threshold, if so, record the current version information of the resource, generate the creation command and version update command for creating the sub-path corresponding to the resource and task in the coordination service system, and The creation command and version update command are submitted to the coordination service system, so that the coordination service system determines whether to execute the creation command and version update command according to the judgment result of whether the version conflicts; if the coordination service system successfully executes the creation command and version update command, then the task is The resource is locked successfully. Through the above method, any number of tasks can lock the resource, which improves the flexibility of locking the resource.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method for locking resources, a computing device and a computer storage medium. Background technique [0002] With the advent of the Internet age, a large number of transactions rely on computers to solve, including information processing, data calculation and so on. At the same time, these processes depend on various hardware and software resources. In the face of increasing demand for resources, it is particularly important to ensure orderly access to resources. In the prior art, for a resource, only one task is allowed to access at the same time to achieve the order of access. [0003] However, the inventors found in the process of implementing the embodiments of the present invention that at least the following problems exist in the prior art: the same resource can only be accessed by one task at the same time, when there are multiple tasks that all have the need to ...

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 Patents(China)
IPC IPC(8): G06F9/48G06F8/65G06F8/71
CPCG06F8/65G06F8/71G06F9/4881
Inventor 冯威
Owner ZHANGYUE TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products