Dual-buffer mechanism based real-time system multi-task data sharing method
A double-buffering mechanism, real-time system technology, applied in memory systems, electrical digital data processing, instruments, etc., can solve problems such as high resource consumption, lack of versatility and portability, changing task scheduling schemes, etc., to ensure the update rate. , the effect of good versatility and portability
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0029] The present invention will be further described in detail through specific embodiments below.
[0030] The present invention first designs a double buffer data structure, the double buffer data structure includes: a single buffer maximum value (number of bytes), a buffer A writable flag, a buffer B writable flag, a buffer writable Read flag, cache write times, cache A update flag, cache B update flag, read task update flag, cache A address, cache B address.
[0031] The double buffer data structure is used as the carrier of data sharing between tasks, figure 1 A memory model for double-buffered data structures. Take the C language implementation as an example, where:
[0032] 1) The maximum number of bytes that a single buffer can handle is hereinafter referred to as singleBufferSize, which is used as the basis for dynamically allocating memory to buffer areas A and B.
[0033] 2) Buffer A writable flag, hereinafter referred to as writeA, is used to judge whether the...
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