Invention Grant
- Patent Title: State-based queue protocol
-
Application No.: US16834938Application Date: 2020-03-30
-
Publication No.: US11714801B2Publication Date: 2023-08-01
- Inventor: Luis F. Stevens , Hrishikesh V. Prabhune , Christopher Fretz
- Applicant: Target Brands, Inc.
- Applicant Address: US MN Minneapolis
- Assignee: Target Brands, Inc.
- Current Assignee: Target Brands, Inc.
- Current Assignee Address: US MN Minneapolis
- Agency: Merchant & Gould P.C.
- Main IPC: G06F16/23
- IPC: G06F16/23 ; G06F9/54

Abstract:
Methods and systems for execution of data operations in a queue are described. One method includes loading a pointer to a record in a lock-free ring buffer by an executing thread, as well as calculating an index from the pointer to a record to be processed and obtaining a header of the record to be processed. Based on the header, a state of the record to be processed is determined from among: a filled state, a filling state, a drained state, and a draining state. A candidate header is created which includes an updated state indicating that the record is in use by the executing thread. An atomic operation is performed to update the header of the record to the candidate header. Upon successful completion of the atomic operation to update the header of the record to the candidate header, a data operation is performed on the record.
Public/Granted literature
- US20210303551A1 STATE-BASED QUEUE PROTOCOL Public/Granted day:2021-09-30
Information query