Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Thread pool processing method and system capable of fusing synchronous and asynchronous features

A thread processing and thread pool technology, applied in the field of Internet communication processing, can solve problems such as difficulty in implementing task request priority execution order, inability to meet the short number of Internet processing, and achieve simple and convenient code maintenance, improved effect, and improved response speed. Effect

Active Publication Date: 2013-07-10
FOCUS TECH +1
View PDF5 Cites 56 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The method proposed in this paper uses an independent thread to process the task requests of the synchronization layer, which cannot meet the needs of the large number of Internet and processing short task requests
In addition, among a large number of task requests on the Internet, their importance is different, which is reflected in the order of execution, and their priorities are also different. It is also difficult for all worker threads to obtain task requests competitively. order of execution

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 processing method and system capable of fusing synchronous and asynchronous features
  • Thread pool processing method and system capable of fusing synchronous and asynchronous features
  • Thread pool processing method and system capable of fusing synchronous and asynchronous features

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0051] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, some terms involved in the embodiments of the present invention will be briefly explained below.

[0052] A thread, sometimes called a Lightweight Process (LWP), is the smallest unit of program execution flow. A standard thread consists of thread ID, current instruction pointer (PC), register set and stack.

[0053] Thread pool: A thread pool is a form of multi-threaded processing in which tasks are added to a queue and then processed automatically after threads are started.

[0054] refer to figure 1 As shown, the processing flow of the embodiment of the present invention specifically includes the following steps:

[0055] Step 10: The system receives information commands from each client, and stores the information commands in the global buffer queue in order.

[0056] Step 11: The main thread scheduler sequentially reads the identification numbers ...

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 provides a thread pool processing method and a thread pool processing system capable of fusing synchronous and asynchronous features. A large number of task requests on the internet are subjected to asynchronous processing by the thread pool, so that mutual influence is avoided and the waiting time is short. Synchronous processing is realized for single user operation, the output requirement according to the service sequence is met, and optimization mechanism capable of performing priority processing is provided for the task request with high importance.

Description

technical field [0001] The invention relates to the field of Internet communication processing, and is a thread pool processing method and system integrating synchronous and asynchronous characteristics. technical background [0002] After decades of development, computer technology has entered the Internet era, and various distributed applications can be seen everywhere. These applications put forward higher requirements on the response speed, robustness and overall performance of the system. [0003] Nowadays, distributed applications have a wide range and are more and more closely integrated with the Internet, such as online games, instant messaging, Weibo, mobile phone applications, etc., all have the following typical characteristics: a large number of access terminals, and a large number of task requests , the amount of data requested each time is small. [0004] With the rise of the Internet of Things, a large amount of industrial data, environmental monitoring data...

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
Inventor 余洋吴小建唐军
Owner FOCUS TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products