Patent ID: 11960933
Assignee: RED HAT, INC.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 14:
15. A method comprising:
receiving, by a consumer thread of a plurality of consumer threads, a consume request associated with an element;
responsive to receiving the consume request, reading, by the consumer thread, a consumer sequence and a consumer buffer;
extracting, by the consumer thread, (i) a chunk identifier, associated with the consumer sequence and (ii) a slot position in a memory chunk from the consumer sequence, wherein the sequence contains values corresponding with slot positions and the first slot position is a next slot position in the sequence which corresponds to a second slot within the memory chunk;
determining, by the consumer thread, that a position of the element mismatches the slot position in the memory chunk from the consumer sequence;
determining, by the consumer thread referring to the consumer buffer coordinating the plurality of consumer threads, that the memory chunk is recyclable;
arithmetically increasing according to a fetch-and-add instruction, by the consumer thread, the consumer sequence; and
consuming, by the consumer thread, the element at the slot position.