118
edits
Changes
→Example Of A False Sharing
[[File:newBlockOutput1000000(1).jpg|400px]]<br />
Now we can already see the advantage of multi-threading. Even when the vector numbers reach the size of 1000000, the Thread block even runs faster than the Serial block.
So the problem of false sharing sometimes cannot be generalized, and the occurrence of false sharing does not necessarily make performance lower. But no matter how the new block is the optimal solution.