Multi-thread processing method and device and server

A multi-threading and threading technology, applied in the field of data processing, to achieve the effect of increasing throughput and reducing idle time

Inactive Publication Date: 2017-05-10
UBTECH ROBOTICS CORP LTD
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The embodiment of the present invention provides a method for multi-thread processing, which solves the problems caused by the one-to-one mode of multi-thread processing of multiple connections

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
  • Multi-thread processing method and device and server
  • Multi-thread processing method and device and server
  • Multi-thread processing method and device and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0028] The following description and drawings illustrate specific embodiments of the invention sufficiently to enable those skilled in the art to practice them. Other embodiments may incorporate structural, logical, electrical, process, and other changes. The examples merely represent possible variations. Individual components and functions are optional unless explicitly required, and the order of operations may vary. Portions and features of some embodiments may be included in or substituted for those of other embodiments. The scope of embodiments of the present invention includes the full scope of the claims, and all available equivalents of the claims. Herein, various embodiments may be referred to individually or collectively by the term "invention", which is for convenience only and is not intended to automatically limit the scope of this application if in fact more than one invention is disclosed. A single invention or inventive concept. Herein, relational terms such...

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 belongs to the technical field of data processing and discloses a multi-thread processing method. The method includes the steps that a thread pool including multiple sub-threads is created; one or more remote connections are established; after a task queue of the one or more remote connections arrives, the sub-threads execute tasks in parallel. A task processing mode of the thread pool is a thread centralized and parallel processing mode, and is not a one-to-one mode. Therefore, the execution problem of multiple threads in a processor unit can be solved, the idle time of the processor unit can be remarkably shortened, and the throughput capacity of the processor unit is improved. The invention further discloses a multi-thread processing device and a server.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to a method and device for multi-thread processing and a server. Background technique [0002] Two programs on the network exchange data through a two-way communication connection, one end of which is called a socket. Socket communication is widely used in various fields of software systems, and usually its communication data requires a custom data format. The current communication method mostly adopts a one-to-one method in which multi-threading handles multiple connections. When there are a large number (for example, 10,000) of connection requests, 10,000 threads may be required to process them, which consumes a lot of resources and causes blocking. Once blocking occurs, a large number of threads will frequently switch contexts, which will consume too much time. Contents of the invention [0003] The embodiment of the present invention provides a method for multi-thre...

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 Applications(China)
IPC IPC(8): G06F9/48G06F9/50
CPCG06F9/4881G06F9/5016G06F9/5022G06F9/5027
Inventor 熊友军朱德军粟德森
Owner UBTECH ROBOTICS CORP 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