cppreference.com says:
Threads and data races
When an evaluation of an expression writes to a memory location and another evaluation reads or modifies the same memory location, the expressions are said to conflict. A program that has two conflicting evaluations has a data race unless...
This speaks about the scenario of 'thread1-write thread2-read' (W-R) and about the scenario of 'thread1-write thread2-write' (W-W).
What about 'thread1-read thread2-read' (R-R)?
Aucun commentaire:
Enregistrer un commentaire