<pre style="word-wrap:break-word;white-space:pre-wrap">Consider using the LMAX Disruptor idea - a big ring buffer that has only one thread inserting work at the head and worker threads
processing those cells.</pre><pre style="word-wrap:break-word;white-space:pre-wrap">The first worker processes cells completed by the inserter, the second worker processes cells completed by the first worker etc.</pre><pre style="word-wrap:break-word;white-space:pre-wrap">
Only one thread (by design) mutates cell content.</pre><pre style="word-wrap:break-word;white-space:pre-wrap">Guy</pre>