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

Multi-process data sharing method and device

A data sharing and multi-process technology, applied in the field of communication, can solve problems such as low efficiency, poor maintainability, and poor flexibility

Active Publication Date: 2015-09-02
DATANG MOBILE COMM EQUIP CO LTD
View PDF4 Cites 14 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0010] The embodiment of the present invention provides a method and device for multi-process data sharing, which is used to solve the problem of low efficiency due to the use of data copy in the process of data sharing, and the flexibility caused by the need to modify the original code when using the pointer method. Poor performance and poor maintainability,

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
  • Multi-process data sharing method and device
  • Multi-process data sharing method and device
  • Multi-process data sharing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048]In order to avoid the problem of low efficiency due to the use of data copy in the process of data sharing, and the problem of poor flexibility and poor maintainability caused by the need to modify the original code when using the pointer method, in the embodiment of the present invention, by using the virtual address The mapping relationship established between the custom segment set in the space and the shared physical memory, based on the mapping relationship, the interaction of shared data between processes is realized between the custom segment and the shared physical memory.

[0049] Preferred embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0050] refer to image 3 As shown, in the embodiment of the present invention, the specific flow of multi-process sharing data is as follows:

[0051] Step 300: Store the shared data in each process into a custom segment, and load the custom segment into th...

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 relates to the communication field, and discloses a multi-process data sharing method and device. According to the scheme, sharing data in the processes are stored in a user-defined section, and the user-defined section is loaded into virtual address space; the size of the user-defined section is obtained, a share physical memory equal to the user-defined section in size is distributed to the share data in the physical memory, and a mapping relation is built between the user-defined section and the share physical memory; based on the mapping relation, interaction of the share data between the processes is achieved between the user-defined section and the share physical memory. In this way, the share data are gathered to be stored in the user-defined section so as to achieve direct sharing of the user-defined section, the problem of slightly-low efficiency caused when data sharing is achieved through data copying is solved, and the problems of poor flexibility and poor maintenance which are caused by the fact that original codes need to be modified during data sharing in a pointer mode are solved.

Description

technical field [0001] The invention relates to the communication field, in particular to a method and device for sharing data by multiple processes. Background technique [0002] In a multi-core Symmetrical Multi-Processing (SMP) system, especially a system that requires high isolation and reliability, multi-process is a typical software model. The address space between multiple processes is isolated, and the process has its own Private data area, so that the processes do not interfere with each other, and the fault can be effectively isolated and the system can be restored to normal operation after an exception. [0003] On a large-capacity parallel processing system, multi-process instance is a typical concurrency design model. Multi-process instance means that multiple processes run the same program code and affinity different instances to different central processing units (Central Processing Units). , CPU) core to give full play to the performance advantages of concur...

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
Inventor 笪禹
Owner DATANG MOBILE COMM EQUIP 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