Thread scheduling method and device, electronic equipment and storage medium

A scheduling method and thread technology, applied in the computer field, can solve the problems of long processor time, multi-thread queuing blocking of processors, and many real-time threads, so as to achieve real-time guarantee, reduce the probability of processor resource preemption, and improve real-time performance. Effect

Inactive Publication Date: 2018-11-13
HUAWEI CLOUD COMPUTING TECH CO LTD
View PDF5 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The application provides a thread scheduling method, device, electronic equipment, and storage medium, which are used to solve the problem that there are too many real-time threads served by a...

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, electronic equipment and storage medium
  • Thread scheduling method and device, electronic equipment and storage medium
  • Thread scheduling method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0047] Hereinafter, some terms in the embodiments of the present application will be explained to facilitate the understanding of those skilled in the art:

[0048] JVM:

[0049] Java virtual machine (java virtual machine, JVM) is an abstract computer that runs all Java programs and is a running environment of the Java language. The Java virtual machine has its own complete hardware architecture, such as processors, stacks, registers, etc., as well as corresponding instruction systems. The Java virtual machine shields the information related to the specific operating system platform, so that the Java program only needs to generate the object code (bytecode) that runs on the Java virtual machine, and it can run normally on multiple operating system platforms without modification.

[0050] CPU:

[0051] The central processing unit (CPU) is a very large-scale integrated circuit. It is the core and control unit of a computer. Its function is mainly to interpret computer instructions and ...

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

Embodiments of the invention provide a thread scheduling method and device, electronic equipment and a storage medium. The method comprises the steps of acquiring a pairing relation between each thread in a target virtual machine process and each local thread in an operating system; and according to the pairing relation, binding each thread to a corresponding processor in a target processor set, so that each thread is dispatched by the corresponding processor. According to the technical scheme, the phenomenon that time slices of the same processor are scrambled for when multiple threads are executed is avoided; the problem that multi-thread task queuing is blocked due to excessive service threads of the same processor and overlong service time of real-time threads is solved; the executiontime delay of other threads is shortened; and the real-time performance of thread execution is improved.

Description

Technical field [0001] This application relates to the field of computer technology, and in particular to a thread scheduling method, device, electronic equipment, and storage medium. Background technique [0002] With the rapid development of the Internet and mobile Internet, large concurrency and low latency have become the performance indicators of big data applications. Accordingly, in order to increase the amount of concurrency, multi-threading technology has been widely used in various applications. The advantages of performance and low power consumption have gradually become the mainstream of market servers. [0003] At present, in the Java virtual machine (java virtual machine, JVM) multi-threaded environment, threads mostly use preemptive scheduling to use the resources of the central processing unit (CPU), that is, the operating system allocates multiple threads to multiple CPUs , Each CPU allocates corresponding service time according to the priority of multiple threads...

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/48G06F9/50G06F9/455
CPCG06F9/45558G06F9/4881G06F9/5038G06F2009/4557G06F2209/484G06F2209/5018G06F2209/5021
Inventor 单卫华熊林
Owner HUAWEI CLOUD COMPUTING 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