Unlock instant, AI-driven research and patent intelligence for your innovation.

A method, device and terminal for sharing data between processes

A technology for sharing data and inter-process, applied in multi-program device, inter-program communication, memory address/allocation/relocation, etc., can solve the problem of low memory resource usage efficiency

Active Publication Date: 2021-05-18
深圳市链科网络科技有限公司
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a method, device, and terminal for sharing data between processes, so as to improve to a certain extent the problem of low utilization efficiency of memory resources in the traditional technology when data sharing between different processes is realized through shared memory

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, device and terminal for sharing data between processes
  • A method, device and terminal for sharing data between processes
  • A method, device and terminal for sharing data between processes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0072] Embodiments of the present application provide a method, device, and terminal for sharing data between processes, so as to improve to a certain extent the problem of low memory resource usage efficiency when data sharing between different processes is implemented through shared memory in the traditional technology.

[0073] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, and to make the above-mentioned purposes, features and advantages of the embodiments of the present invention more obvious and understandable, the following describes the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings For further detailed explanation.

[0074] The present application discloses a method for sharing data between processes. The CPU in the operating system applying the method reads the program codes of multiple application programs to generate mul...

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

This application discloses a method, device, and terminal for sharing data between processes. This application maps virtual I / O devices to the virtual address spaces of the first process and the second process respectively, and the first target address space and the second target address The space is the same; if the first process needs to share data, the first process transmits a memory allocation request to the operating system, the operating system allocates a memory block, maps the memory block to the first target address space, and maps the information of the memory block to the first target address space The mapping relationship between the first address segment and the memory block is stored in the page table management module. The second process accesses the virtual address in the first address segment, triggers the operating system to generate an access exception, instructs the virtual I / O device to execute an exception handling routine, and maps the memory block to the second process, so that the second process can access the memory piece. This application does not need to pre-allocate shared memory, but only when shared data is needed, the first process triggers the system to allocate memory blocks to improve memory utilization efficiency.

Description

technical field [0001] The present application relates to the technical field of shared memory, and in particular to a method, device and terminal for sharing data between processes. Background technique [0002] Existing operating systems often require multiple processes to complete work in parallel, and each process cannot directly obtain data in other processes. Therefore, shared memory is usually used to implement data sharing among different processes. [0003] In traditional technology, if shared memory is used to share data between different processes, it is necessary to pre-allocate memory accessible by multiple processes, that is, shared memory. When data needs to be shared between different processes, one of the processes will need to share The data stored in the shared memory is stored in the shared memory, and other processes can obtain the data to be shared by accessing the shared memory. Wherein, the method for allocating shared memory usually includes the fol...

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/54G06F12/02G06F3/06
Inventor 李昶
Owner 深圳市链科网络科技有限公司