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

Method and device for multi-process operation shared memory

A shared memory, multi-process technology, applied in the computer field, can solve problems such as low processing efficiency, and achieve the effect of improving processing efficiency and processing performance

Active Publication Date: 2020-01-14
TENCENT TECH (SHENZHEN) CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Based on this, it is necessary to provide a method and device for multi-process operation shared memory to solve the technical problem of low processing efficiency in traditional technology

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
  • Method and device for multi-process operation shared memory
  • Method and device for multi-process operation shared memory
  • Method and device for multi-process operation shared memory

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0042] Such as figure 1 As shown, in one embodiment, a method for multi-process operation shared memory is provided, including:

[0043] Step 102, when the first process needs to modify data in the first shared memory, copy the data in the first shared memory to a pre-allocated second shared memory equal in size to the first shared memory.

[0044] The first shared memory and the second shared memory are pre-allocated shared memories of equal size. In this embodiment, when a shared memory of a certain size is needed, a shared memory of twice the size is allocated, and half of the shared memory is...

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 provides a sharing memory multi-process operation method. The sharing memory multi-process operation method comprises copying data in a first sharing memory to a pre-allocated second sharing memory when the data in the first sharing memory need to be modified through a first process, wherein the size of the first sharing memory is the same as that of the second sharing memory; modifying data in the second sharing memory through the first process; modifying a stored address of the current data area into an address of the second sharing memory from an address of the first sharing memory when the modification of the data in the second sharing memory is achieved. According to the sharing memory multi-process operation method, the concurrent execution of the reading operation and writing operation of the sharing memories can be achieved and accordingly the processing efficiency of equipment is improved. In addition, the invention also provides a sharing memory multi-process operation device and a sharing memory multi-process operation method and device.

Description

technical field [0001] The invention relates to the technical field of computers, in particular to a method and device for multi-process operation shared memory. Background technique [0002] Shared memory refers to memory that can be shared by more processes, which is described as a mapping of an area (segment) of memory. A process is a running instance of an application and is a dynamic execution of the application. Multi-process operation shared memory refers to the realization of reading data in shared memory or writing data to shared memory, and multi-process can realize inter-process communication through shared memory. [0003] In traditional technology, in order to maintain the accuracy of memory data, multi-process operation shared memory requires the use of resource locks, that is, before a process reads data in the shared memory or writes data to the shared memory, it needs to obtain the shared memory first. Resource lock, only the process that has acquired the ...

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/50
Inventor 赵文
Owner TENCENT TECH (SHENZHEN) 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