发明名称 Non-blocking concurrent queues with direct node access by threads
摘要 Multiple non-blocking FIFO queues are concurrently maintained using atomic compare-and-swap (CAS) operations. In accordance with the invention, each queue provides direct access to the nodes stored therein to an application or thread, so that each thread may enqueue and dequeue nodes that it may choose. The prior art merely provided access to the values stored in the node. In order to avoid anomalies, the queue is never allowed to become empty by requiring the presence of at least a dummy node in the queue. The ABA problem is solved by requiring that the next pointer of the tail node in each queue point to a "magic number" unique to the particular queue, such as the pointer to the queue head or the address of the queue head, for example. This obviates any need to maintain a separate count for each node.
申请公布号 US6889269(B2) 申请公布日期 2005.05.03
申请号 US20030429309 申请日期 2003.05.05
申请人 MICROSOFT CORPORATION 发明人 FORIN ALESSANDRO;RAFFMAN ANDREW
分类号 G06F3/00;G06F5/06;G06F13/10;(IPC1-7):G06F13/10 主分类号 G06F3/00
代理机构 代理人
主权项
地址