Dual-buffer serialization and consumption of variable-length data records produced by multiple parallel threads
AssigneeInternational Business Machines Corporation
InventorVitali Mints
Life of this patent
Estimating the term…
Loading patent…
AssigneeInternational Business Machines Corporation
InventorVitali Mints
Estimating the term…
Under control of the consumer, it is determined that a first buffer is empty and that a second buffer contains data; a first compare-double-and-swap operation within a spin loop is executed to swap a double pointer of the first buffer and a double pointer of the second buffer, wherein responsive to the executing of the operation the consumer drains the second buffer, and wherein the executing of the operation directs the at least one producer to fill the first buffer; and it is determined that the first buffer and the second buffer are empty and the consumer waits for a notification from one of i) the at least one producer and ii) a timer. Under control of the at least one producer, a second compare-double-and-swap operation within a spin loop is executed to atomically locate the first buffer and update the double pointer of the first buffer.
A method, comprising:
A computer program product, the computer program product comprising:
A computer system, comprising:
Dependencies are inferred from the claim text.