Unlocked memory application releasing method
A memory application, memory block technology, applied in the direction of memory address/allocation/relocation, memory system, instrument, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0029] Based on a characteristic of the current embedded system: the threads of the embedded system often run periodically and will not end. In this way, irregular memory operations can be scheduled to a fixed time point, and there is no need to worry about the thread applying for memory ending before the memory is released. A compare and replace (CAS) atomic operation is often used in lock-free research. This operation reads a shared resource (P), assigns (P) a new value, and returns the old value if and only if (P) is equal to the old value. Since this operation is an atomic operation, the method of protecting shared resources can be achieved without locks. The present invention utilizes a Compare and Replace (CAS) operation. The technical solution of the present invention will be described in detail below in conjunction with the drawings and embodiments.
[0030] For ease of description, the present invention provides an embodiment with a memory pool management solution....
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 