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

Inter-process data exchange method

A data exchange and inter-process technology, applied in the directions of inter-program communication, electrical digital data processing, program synchronization, etc., can solve problems such as insufficient system and comprehensiveness, and achieve the effect of convenient software development

Active Publication Date: 2019-03-22
NO 54 INST OF CHINA ELECTRONICS SCI & TECH GRP
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] In order to realize inter-process data exchange, three problems need to be solved: first, inter-process communication problem; second, data structure problem; third, data access method problem
[0007] Although the above-mentioned existing technologies can realize inter-process data exchange, the current methods for inter-process data exchange are not systematic enough, and there is still room for further improvement in the efficiency of data exchange

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
  • Inter-process data exchange method
  • Inter-process data exchange method
  • Inter-process data exchange method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0044] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0045] A method for inter-process data exchange, the process of which is as follows figure 1 shown.

[0046] The basic steps of the method are as follows:

[0047] A. Through the "initialization" operation to open up a shared memory area as a data exchange buffer.

[0048] The buffer uses an array structure on physical storage, that is, a continuous memory address space, such as figure 2 shown. The logical storage of the buffer uses a circular queue structure, that is, a first-in-first-out queue connected end to end, such as image 3 shown.

[0049] Among them, the implementation method of the "initialization" operation is as follows Figure 4 shown. The "initialization" operation detects whether the corresponding shared memory area already exists through the connection identifier. If it already exists, it means that a proces...

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 an inter-process data exchange method, belonging to the technical field of computer software development. The invention provides an efficient data exchange method between processes based on a shared memory and a circulating queue aiming at the problem of data exchange between processes of computer software. At first, that method open a section of shared space on the memory,and each process can access the memory space through a specified identifier; Then a circular queue data structure is designed on the shared memory space. The array is used to store the data in the data structure, and the memory block is used to copy the data to improve the efficiency. At the same time, the mutually exclusive locks are added to the critical variables in the data structure to ensure the security of the data when they are used concurrently. Finally, add add data, fetch data, and so on to the circular queue. The invention provides an efficient and feasible thought and method fordata exchange between computer software processes.

Description

technical field [0001] The invention belongs to the technical field of computer software development, in particular to a method for exchanging data between processes. Background technique [0002] Traditional software is a single-process (single executable program) multi-thread mode, and all storage spaces in a process are based on the same starting memory address and can only be accessed by this process. However, with the rapid development of artificial intelligence technology and data mining technology in recent years, as well as the popularity of multi-core central processing units and GPU computing, multi-threading has been unable to meet the processing requirements. Therefore, the developers turned to design the software as a single-terminal multi-service model. In this mode, each terminal and service is an independent process, and different processes need to cooperate to complete the work, so there will be a large amount of data exchange requirements, which requires a...

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/52G06F9/54
CPCG06F9/526G06F9/544G06F9/546G06F2209/548
Inventor 张云龙
Owner NO 54 INST OF CHINA ELECTRONICS SCI & TECH GRP
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