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

A method for concurrent communication of named pipe server based on thread pool

A named pipe and communication method technology, which is applied in the field of computer software, can solve problems such as inability to guarantee data order, small overhead, and cannot be ignored, and achieve the effects of ensuring reliability and real-time performance, reducing CPU load, and improving concurrency

Active Publication Date: 2016-08-24
NANJING GUODIAN NANZI WEIMEIDE AUTOMATION CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The header of the UDP message is only 8 bytes, the overhead is small, and the transmission is faster than TCP, but the order of the data cannot be guaranteed, and there is a possibility of packet loss.
[0011] It can be seen that the communication method using socket, whether it is TCP or UDP, has its own advantages, but there are also disadvantages that cannot be ignored.

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
  • A method for concurrent communication of named pipe server based on thread pool
  • A method for concurrent communication of named pipe server based on thread pool
  • A method for concurrent communication of named pipe server based on thread pool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] For the software application system of C / S architecture, the communication method of named pipe is adopted to realize the network interaction between the client and the server. Physical structure diagram of network communication, such as figure 1 shown.

[0031] On the server side of the software application system, the high-performance server system proposed by the present invention is mainly composed of a communication interface layer, a message buffer layer and a business logic layer. The system architecture is as follows: figure 2 shown.

[0032] The interface layer is composed of a read thread and a write thread on the server side, and the message data is read and sent in an asynchronous manner, that is, two independent threads are used to read the client message and send the server message. Among them, the reading thread is mainly responsible for monitoring the named pipe connection request from the client, and receiving the request command of each client, 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

The invention discloses a thread pool based named pipe server concurrent communication method which comprises the following steps: 1, allowing a read thread at a server terminal to receive an operation request instruction from a client; 2, packing the received operation requests by the read thread to generate an input information which is saved in an input information buffer zone; 3, taking one piece of input information by a business logic thread pool , and performing corresponding operation according to the operation type defined in the information, after the completion of operation, packing the corresponding operation results by the thread pool so as to generate a piece of output information which is saved in an output information buffer zone; and 4, when a write thread at the server terminal detects the output information in the output information buffer zone, acquiring the output information from the queue, and feeding the corresponding operation result to the corresponding client according to the communication mark in the information. According to the invention, with two threads, data reading and sending between the client and the server can be realized, so as to ensure the reliability and real-time performance of the system.

Description

technical field [0001] The invention relates to a server concurrent communication method based on a client / server, and belongs to the technical field of computer software. Background technique [0002] At present, most application system software is based on the two-layer structure of client / server (Client / Server). Using this architecture can make full use of the advantages of the hardware environment at both ends, and reasonably allocate tasks to the client and server, thereby Reduce the overall overhead of the system. In the case of a certain hardware configuration, the performance of the server-side software is crucial to the performance of the entire software application system. [0003] The performance of the server is reflected in the following aspects: [0004] One is the speed at which the server responds to the client, that is, the real-time nature of communication; the other is the concurrency performance of the server, that is, how many clients can simultaneousl...

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 Patents(China)
IPC IPC(8): H04L12/861H04L29/08
Inventor 廖环宇吴胜华
Owner NANJING GUODIAN NANZI WEIMEIDE AUTOMATION 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