Thread pool task processing method in high-availability cluster system

A cluster system and task processing technology, applied in the field of thread pool task processing, can solve the problems of reduced system efficiency, consumption of system resources, excessive consumption, etc.

Inactive Publication Date: 2018-03-23
BEIJING INST OF COMP TECH & APPL
View PDF5 Cites 26 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Moreover, threads will also consume system resources when they are active. Creating too many threads will cause th

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 pool task processing method in high-availability cluster system
  • Thread pool task processing method in high-availability cluster system
  • Thread pool task processing method in high-availability cluster system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to make the purpose, content, and advantages of the present invention clearer, the specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0026] figure 1 Shown is a schematic diagram of a high-availability cluster system, such as figure 1 As shown, the composition of the high-availability cluster includes: 1. A cluster must contain 2 to 16 servers; 2. The servers in the cluster must be installed with the winning Kylin high-availability cluster software; 3. (optional) shared disk; 4. ( Optional) optical fiber storage; 5. The servers connected to the cluster need to ensure at least two ways to connect the servers of the winning Kylin high-availability cluster software, including: Ethernet, serial connection, and shared disk link.

[0027] Such as figure 1 As shown in , the user terminal is an interactive interface provided to the user, on which the user ...

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 thread pool task processing method in high-availability cluster system. the method includes the steps of previously creating a certain number of unoccupied working threads atfirst, wherein the unoccupied working threads all stay at a condition blocking state during initiation; forming a working task array; adopting a main thread of a thread pool for sequentially processing a cycle of searching for working tasks, examining the state of the thread pool and distributing working threads for the working tasks; obtaining a working task to be processed from the head part ofthe working task array; if the working task to be processed is obtained successfully, proceeding to the next step; if the working task to be processed is not obtained successfully, maintaining the state of obtaining the working task; when the number of the current occupied threads in the thread pool accounts for over a certain proportion of the total thread number, not processing the current working task; detecting the state of the thread pool, and when the number of the current unoccupied threads is smaller than a minimum unoccupied value, creating a certain number of unoccupied threads to maintain the balance state of the thread pool; when the number of the current unoccupied threads is greater than a maximum unoccupied value, releasing a certain number of unoccupied threads; distributing a working thread for the working task to be processed.

Description

technical field [0001] The invention relates to a computer task processing method, in particular to a thread pool task processing method in a high-availability cluster system. Background technique [0002] In the era of rapid development of computer technology and the Internet, big data analysis and supercomputing have gradually become the mainstream research directions of various research teams. Similarly, as a national defense science and technology industry that requires precise calculations, the requirements for computing performance are getting higher and higher. In order to improve the computing performance to meet the operational requirements, cluster technology is applied to connect multiple servers or PCs through the network to jointly process a large and complex computing task. [0003] The advantage of the cluster system is that it can distribute complex computing tasks to various PCs or servers. But the specific allocation method needs to come up with an algori...

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/50G06F9/48
CPCG06F9/4881G06F9/505G06F9/5083G06F2209/5019
Inventor 李世巍
Owner BEIJING INST OF COMP TECH & APPL
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