Linked list management method based on reference counting
A reference counting and management method technology, applied in the field of reference counting-based linked list management, can solve problems such as access and invalid memory, and achieve the effect of improving the overall responsiveness
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0015] as attached figure 1 Shown: The linked list contains four nodes A, B, C, and D. The first access thread atomically adds 2 to the reference count before reading the linked list data. The reference count value is initially 1 and becomes 3 after adding 2. The management thread starts to delete node B, and the first access thread is accessing node A.
[0016] as attached figure 2 Shown: Node B is deleted from the linked list by the management thread, so that the link pointer of node A directly points to node C, but the link pointer of node B still points to node C. At this time, the first access thread is accessing node B, and the access thread can still continue to access node C through the link pointer of node B. After the management thread deletes the node B, it notifies the recovery thread to release the memory resources of the node B.
[0017] as attached image 3 Shown: before releasing the memory resources of node B, the recycling thread atomically decrements ...
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