Thread scheduling method and device based on distributed cache

A technology of distributed caching and scheduling methods, which is applied in the field of computer systems, can solve problems such as low success rate, inability to guarantee that threads can obtain resources first, and inability to guarantee the success of multiple applications, so as to achieve the effect of improving the success rate

Pending Publication Date: 2021-09-24
INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in the above scheme, each thread freely competes for lock resources, and it cannot guarantee that important and urgent threads will obtain resources first.
In addition, if the same thread applies for resources multiple times within a certain period of time, there is no guarantee that multiple applications can be successfully applied, and the success rate of such threads applying for resources is low

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 scheduling method and device based on distributed cache
  • Thread scheduling method and device based on distributed cache
  • Thread scheduling method and device based on distributed cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0051] It should be noted that a distributed cache-based thread scheduling method and device disclosed in this application can be used in the field of artificial intelligence technology, and can also be used in any field other than the field of artificial intelligence technology. The application fields of the thread scheduling method and device of the cache are not limited.

[0052]In order to facilitate the understanding of the technical solution provided by ...

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 embodiment of the invention provides a thread scheduling method and device based on distributed cache, which can be used in the technical field of artificial intelligence, and the method comprises the following steps: receiving a resource request sent by a thread to be scheduled; in response to the resource request, judging and processing the transaction lock state information of the to-be-scheduled thread, the current transaction lock of the accessible resource and the thread level to generate the thread scheduling result, so that on the premise of ensuring the serial use of the same resource, the important and urgent threads can be further ensured to preferentially obtain the resource, and the thread applying for the resources for multiple times within a certain time can successfully obtain the resources, so that the success rate of applying for the resources by the thread is improved.

Description

technical field [0001] The present invention relates to the technical field of computer systems, in particular to the technical field of artificial intelligence, and in particular to a distributed cache-based thread scheduling method and device. Background technique [0002] In a distributed system, there is resource contention between different nodes and containers. In order to avoid deadlocks in accessing resources and a large number of threads waiting, related technologies guarantee the serialization of the same resource by applying for locks in the distributed cache. line use. However, in the above solution, the threads freely compete for lock resources, and there is no guarantee that important and urgent threads will obtain resources first. In addition, if the same thread applies for resources multiple times within a certain period of time, there is no guarantee that multiple applications can be successfully applied, and the success rate of such threads applying for re...

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
IPC IPC(8): G06F9/48
CPCG06F9/4881
Inventor 苏宇苏泽华阳理理欧乾君
Owner INDUSTRIAL AND COMMERCIAL BANK OF CHINA
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