|
![](/i/fill.gif) |
Warp <war### [at] tag povray org> wrote:
> Le_Forgeron <lef### [at] free fr> wrote:
> > Two threads updating the same counter would need a mutex to protect the
> > counter, defeating the purpose of multi-threading (well, the mutex would
> > become the bottleneck).
>
> If the count is updated infrequently (eg. once per second) it shouldn't
> make any difference.
>
Agreed. Alternately, threads can update their own counters. When it's time to
report, they can read the others and report the total.
Post a reply to this message
|
![](/i/fill.gif) |