(original) (raw)
On 6 Jun 2014 17:07, "Sturla Molden" <sturla.molden@gmail.com> wrote:
\> We would in total need two mutexes, one condition variable, a pthread, and
\> a heap.
The proposal in my initial email requires zero pthreads, and is substantially more effective. (Your proposal reduces only the alloc overhead for large arrays; mine reduces both alloc and memory access overhead for boyh large and small arrays.)
-n