Shared memory adjustment method, device, apparatus and medium
A technology of shared memory and adjustment method, applied in the field of computer processing, can solve the problems of long data message size and inability to correctly store data messages in shared memory, so as to ensure correct storage and transmission, improve flexibility, and improve the effect of utilization.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] figure 1 It is a flow chart of a shared memory adjustment method provided by Embodiment 1 of the present invention. This embodiment is applicable to the situation of adjusting the size of the shared memory for storing data messages, especially for the function modules in the unmanned vehicle system. In the case of adjusting the size of the shared memory stored in the data messages transmitted between them, the method can be performed by the device for adjusting the shared memory provided in the embodiment of the present invention, which can be implemented in software and / or hardware, and generally can be Integrate in on-board equipment, such as control equipment for driverless vehicles. Such as figure 1 As shown, the method of this embodiment specifically includes:
[0024] S110. Pre-allocate message storage space in the shared memory space for processing tasks.
[0025] Generally speaking, a system will include multiple functional modules, and each functional module...
Embodiment 2
[0050] figure 2 It is a flow chart of a shared memory adjustment method provided by Embodiment 2 of the present invention. This embodiment is further specificized on the basis of Embodiment 1 of the present invention. According to the size relationship between the data message and the message storage space , the step of adjusting the size of the message storage space is embodied as: if the size of the data message is greater than the size of a storage unit in the message storage space, then increase the size of each storage unit in the message storage space the size of the storage unit until the size of the storage unit is greater than or equal to the size of the data message.
[0051] S210. Pre-allocate a message storage space in the shared memory space for the processing task, where the message storage space includes at least one storage unit and redundant space, and each storage unit has the same size.
[0052] Optionally, the size of the redundant space is equal to the p...
Embodiment 3
[0078] image 3 It is a schematic structural diagram of a shared memory adjustment device provided in Embodiment 3 of the present invention. The shared memory adjustment device is set on a vehicle-mounted device, such as image 3 As shown, the device specifically includes:
[0079] A message storage space allocation module 310, configured to pre-allocate message storage space in the shared memory space for processing tasks;
[0080] A data message obtaining module 320, configured to obtain the data message stored in the message storage space by the processing task;
[0081] The storage space size adjustment module 330 is configured to adjust the size of the message storage space according to the size relationship between the data message and the message storage space.
[0082] The embodiment of the present invention dynamically adjusts the size of the message storage space based on the size relationship between the data message stored in the message storage space and the mes...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com