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

Process communication method and process communication system

A communication method and technology of a communication system, applied in the process communication method and system field, can solve problems such as inflexibility, unpredictable data length, space waste, etc., and achieve the effect of improving flexibility

Active Publication Date: 2013-12-04
SHENZHEN TENCENT COMP SYST CO LTD
View PDF3 Cites 23 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, the pre-delineated shared memory area is static, and the actual data length during process communication cannot be expected. Often there will be insufficient shared memory area, or the waste of space, and there are also defects of inflexibility.

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
  • Process communication method and process communication system
  • Process communication method and process communication system
  • Process communication method and process communication system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0082] Such as figure 1 As shown, in one embodiment, a process communication method includes the following steps:

[0083] Step S10, allocate memory space according to the process communication request.

[0084] In this embodiment, the process communication request is issued by a process that needs to share data with other processes. After receiving the process communication request, the resource manager will allocate memory space for the corresponding communication data in the shared memory pool. The allocated memory The space is a piece of shared memory resource in the shared memory pool obtained according to the data length of the communication data. The allocation of this memory space is carried out dynamically, which can ensure the effective utilization of storage resources.

[0085] Step S30, storing the communication data into the memory space.

[0086] In this embodiment, the communication data is stored in the applied memory space, so that multiple processes can sh...

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 process communication method. The process communication method includes steps of distributing memory spaces according to process communication requests; storing communication data into the memory spaces; writing logic addresses of the memory spaces into a message queue; reading the logic addresses in the message queue to access the communication data. The process communication method and a process communication system have the advantages that the memory spaces used for storing the communication data are distributed when the process communication requests are received, and accordingly storage spaces for the communication data are not required to be divided in advance; the logic addresses of the memory spaces are written into the message queue and can be read to access the communication data, so that the logic addresses in the message queue can be read one by one to orderly access the communication data in data access processes under the effect of the message queue, the communication data do not need to be copied in communication procedures among the multiple processes, and the data sharing flexibility is greatly improved.

Description

【Technical field】 [0001] The invention relates to network application technology, in particular to a process communication method and system. 【Background technique】 [0002] With the gradual increase of various applications in the network server and the improvement of performance, the communication between processes is becoming more and more frequent, and the amount of data exchanged in the communication process is also increasing, which makes the communication between processes have many defects. Traditional process communication includes Apache's process communication model and memory sharing process communication method. Apache is a widely used web server software. It maintains a process pool to achieve data interaction between the main process and multiple processes in the process pool. For example, the processes in the process pool are used to execute programs in the web server, that is, CGI (Common Gateway Interface, based on the input of the browser, the program runn...

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/54G06F12/10G06F12/0802
Inventor 黄明生田诗源
Owner SHENZHEN TENCENT COMP SYST 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