| CPC G06F 13/1673 (2013.01) [G06F 2213/16 (2013.01)] | 18 Claims |

|
1. A system including:
a memory configured to provide:
a first buffer for storing a number of elements for processing; and
a second buffer for storing elements for adding to the first buffer; and
at least one processor configured to:
obtain an element to be processed;
determine that the number of elements in the first buffer is greater than a first threshold;
implement a number of worker threads that add elements to the first buffer, wherein the first threshold is at most the total number of elements for which the first buffer has capacity less the number of worker threads; and
add the obtained element to the second buffer.
|