Queue CAS atomic operation control method
A control method and atomic operation technology, applied in the field of queue CAS atomic operation control, can solve problems such as difficult to guarantee, low efficiency, unattainable, etc., and achieve the effect of improving efficiency, reducing failure rate, and reducing high
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0029] The specific implementation manners of the present invention will be further described in detail below in conjunction with the accompanying drawings.
[0030] The present invention designs a queue CAS atomic operation control method, aiming at the transmission length of k·2 from the sending end to the receiving end n The lock-free single-producer single-consumer queue realizes the CAS atomic operation of the receiving end on the data in the queue, where k and n are both integers not less than 1.
[0031] Such as figure 1 The schematic diagram of the 16-bit head pointer module of the lock-free queue producer is shown. First, you need to declare the pointer head of the queue producer, whose type is 16-bits long integer. This pointer is declared as a global variable to record where the producer is currently located. The upper 8 bits of the Head pointer represent the first address of the block where the element is located, which is the key address value (key address valu...
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