Supercharge Your Innovation With Domain-Expert AI Agents!

Memory sharing method and multiprocessor-based terminal device

A memory sharing and multi-processor technology, applied in the computer field, can solve the problems of increased debugging difficulty, more mutual exclusion logic, and poor portability, so as to reduce the difficulty of debugging and realize the effect of unified management

Inactive Publication Date: 2018-05-11
LEADCORE TECH +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in the process of realizing the invention, the inventors of the present application found that, in the above-mentioned memory management method, the management of the idle queue and the data queue are separately managed by the sender processor and the receiver processor, which requires more mutual exclusion. Logic can achieve common management, and the difficulty of debugging also increases. Once an error occurs in memory usage, it is necessary to grab the data structures on the two processors at the same time to locate, which requires high debugging methods. In particular, the queue buffer area needs It is pre-allocated and independent of the heap space of the operating system. Moreover, this part of the pre-planned buffer area defined by the size and boundary will change according to different hardware resources. When changing the product form, the plan needs to be adjusted accordingly, and the portability is poor.

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
  • Memory sharing method and multiprocessor-based terminal device
  • Memory sharing method and multiprocessor-based terminal device
  • Memory sharing method and multiprocessor-based terminal device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0031] In order to make the object, technical solution and advantages of the present invention clearer, various embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. However, those of ordinary skill in the art can understand that, in each implementation manner of the present invention, many technical details are provided for readers to better understand the present application. However, even without these technical details and various changes and modifications based on the following implementation modes, the technical solution claimed in this application can also be realized.

[0032] The first embodiment of the present invention relates to a memory sharing method, which is applied to data communication among multiple processors in the same terminal. The specific process is as figure 1 shown.

[0033] In step 101, apply for a cache area from the system heap space.

[0034] Specifically, during the startup proce...

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 field of computers and discloses a memory sharing method and a multiprocessor-based terminal device. According to the method, a first processor serving as a data receiverapplies for N cache regions from a system heap space in a starting process of an operation system; the cache regions are ensured to be applied for by the receiver; the first processor stores addressesof the N cache regions in N sections in sequence, so that data communication can be performed through a public shared memory; a second processor serving as a data sender writes data in the cache regions corresponding to L sections in sequence; and the first processor reads the data of the cache regions corresponding to the L sections and then releases the cache regions corresponding to the L sections, so that the receiver obtains the data of the sender through the shared memory, and the cache regions are ensured to be released by the receiver. Multiple processors of the same terminal is managed in a unified way by adopting a memory management mode of applying for and releasing the cache regions by the receiver during the data communication based on the shared memory.

Description

technical field [0001] The invention relates to the computer field, in particular to a memory sharing method and a multiprocessor-based terminal device. Background technique [0002] Multiprocessor chips are widely used in various embedded devices. Data communication between processors is based on shared memory. This shared memory can be accessed by multiple processors to read and write data separately. Operation, at present, in scenarios that require high real-time data interaction, the following memory management methods are basically adopted: the shared memory is divided into two areas, the data area and the free area, and are managed by queues respectively. Among them, In the data area, several buffer areas are arranged together to form a data queue. In the idle area, a number of idle buffer areas without valid data are arranged together to form an idle queue. Moreover, the buffer area is applied by the processor as the sender, and the Released by the receiving processo...

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/50G06F9/54G06F12/0806
CPCG06F9/5022G06F9/544G06F12/0806
Inventor 刘娜高兵
Owner LEADCORE TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More