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

Communication optimization method and system

An optimization method and named pipe technology, applied in the field of communication, can solve problems such as increased CPU load, increased program resource consumption, and affected program performance, so as to avoid thread blocking and improve processing efficiency.

Active Publication Date: 2017-12-29
WUHAN DOUYU NETWORK TECH CO LTD
View PDF5 Cites 17 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The traditional solution is to use multi-threading technology, using multiple threads to manage multiple processes, that is, for each client process, a corresponding thread is required to manage the client process, so there will be many threads in the background , will increase the consumption of a large amount of program resources
In addition, due to too many threads, the CPU needs to spend more time scheduling and switching these threads, resulting in low CPU processing efficiency. Frequent thread blocking and wake-up blocking will increase the load on the CPU, which will seriously affect the running performance of the program.

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
  • Communication optimization method and system
  • Communication optimization method and system
  • Communication optimization method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. The following examples are used to illustrate the present invention, but are not intended to limit the scope of the present invention.

[0044] see figure 1 , provide the communication optimization method of an embodiment of the present invention, comprise: S1, create the corresponding named pipe for each client process, wherein, each client process completes asynchronous I with the server by calling the interface function on the corresponding named pipe / O operation; S2, bind all named pipe handles to the completion port of the server, where the completion port runs in the background thread of the server; S3, obtain the asynchronous I / O operation on each named pipe through the completion port , and according to the type of each asynchronous I / O operation, call the corresponding function method for process...

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 communication optimization method and system. The method comprises the steps of S1, creating a corresponding named pipeline for each client process; S2, binding all named pipeline handles to a completion port of a server, wherein the completion port runs in a background thread; and S3, obtaining asynchronous I / O operation on each named pipeline through the completion port, and according to the type of each asynchronous I / O operation, calling a corresponding function method to perform processing. The completion port is created; all the named pipeline handles corresponding to the client processes are bound to the completion port; the asynchronous I / O operations of all clients are managed by utilizing the completion port; the completion port only needs to run in one background thread, so that request events of the clients can be processed through one background thread; and compared with a conventional mode in need of a plurality of threads, the problem of thread blockage is avoided and the CPU processing efficiency is improved.

Description

technical field [0001] The present invention relates to the technical field of communications, and more specifically, to a communication optimization method and system. Background technique [0002] In the large-scale development process, in order to improve the computing efficiency and stability of the program and make full use of the performance of the computer CPU, multiple processes are usually created to realize the core service functions. Since each process is an independent instance, it will involve To the problem of communication between multiple processes. [0003] The traditional solution is to use multi-threading technology, using multiple threads to manage multiple processes, that is, for each client process, a corresponding thread is required to manage the client process, so there will be many threads in the background This will increase the consumption of program resources. In addition, due to too many threads, the CPU needs to spend more time scheduling and ...

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/54
CPCG06F9/546
Inventor 黄浩张文明陈少杰
Owner WUHAN DOUYU NETWORK TECH CO LTD
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