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

A method for inter-process data exchange

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

Active Publication Date: 2021-04-20
NO 54 INST OF CHINA ELECTRONICS SCI & TECH GRP
View PDF4 Cites 0 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
  • A method for inter-process data exchange
  • A method for inter-process data exchange
  • A method for inter-process data exchange

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 a data exchange method between processes, belonging to the technical field of computer software development. Aiming at the problem of data exchange between computer software processes, the invention proposes an efficient inter-process data exchange method based on shared memory and circular queue. This method first creates a shared space in the memory, and each process can access the memory space by specifying an identifier; then, a circular queue data structure is designed in the shared memory space, and the data structure uses an array for storage inside, and the data operation adopts Copy memory blocks to improve efficiency; at the same time, add mutex locks to critical variables in the data structure to ensure data security during concurrent use; finally, add operations such as "add data" and "take data" to the circular queue. The invention provides an efficient and feasible idea and method for data 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
Patent Type & Authority Patents(China)
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