logoalt Hacker News

nh2today at 5:27 AM1 replyview on HN

No. False sharing can happen even with only 1 writer.


Replies

wongarsutoday at 9:33 AM

GP's claim does not require two writers for false sharing. It requires two threads with either read or write access, at least of which is writing

The valid criticism is that message passing also fits that definition. But assuming good faith, the implied argument seems to be "use an off-the-shelf message passing solution that already solves all this, rather than rolling your application-specific data sharing"