Thread Previous • Date Previous • Date Next • Thread Next |
> What will happen if two threads increment the value at the same time? Pretty much random things (garbage, not incremented, etc), depending on atomicity of reads/writes. There is OpenMPAcuumulator template for this purpose, used e.g. for unbalanced force callback. Cheers, v.
Thread Previous • Date Previous • Date Next • Thread Next |