Invention Grant
- Patent Title: Method and apparatus for implementing atomic FIFO
- Patent Title (中): 用于实现原子FIFO的方法和装置
-
Application No.: US12477767Application Date: 2009-06-03
-
Publication No.: US08239867B2Publication Date: 2012-08-07
- Inventor: David A. Zarzycki , Kevin James Van Vechten , Joshua Osborne
- Applicant: David A. Zarzycki , Kevin James Van Vechten , Joshua Osborne
- Applicant Address: US CA Cupertino
- Assignee: Apple Inc.
- Current Assignee: Apple Inc.
- Current Assignee Address: US CA Cupertino
- Agency: Blakely, Sokoloff, Taylor & Zafman LLP
- Main IPC: G06F9/46
- IPC: G06F9/46

Abstract:
Techniques for implementing an atomic FIFO queue and system for processing queue elements are described herein. According to one embodiment, in a first thread of execution, new data is atomically merged with existing data of an object via an atomic instruction associated with hardware that executes the first thread. An attempt is made to acquire ownership of the object (exclusive access). If successful, the object is enqueued on an atomic FIFO queue as a continuation element for further processing. Otherwise, another thread of execution is safely assumed to have acquired ownership and taken responsibility to enqueue the object. A second thread of execution processes the atomic FIFO queue and assumes ownership of the continuation elements. The second thread invokes a function member of the continuation element with a data member of the continuation element, the data member including the newly merged data. Other methods and apparatuses are also described.
Public/Granted literature
- US20100313208A1 METHOD AND APPARATUS FOR IMPLEMENTING ATOMIC FIFO Public/Granted day:2010-12-09
Information query