News for hackers. Stuff that matters.
Re:Single Writer Principle (2011) by yeahgoodok on Tuesday May 12, 2020 @07:28AM (#23152830)
Can't believe this is almost a decade old. I recently tried explaining this concept during an interview and got a lot of strange looks. Most devs (even senior) were taught von Neumann architecture and assume all memory is shared. This is an excellent explainer and one I'll refer to in the future.
Re:Single Writer Principle (2011) by brickbrd on Tuesday May 12, 2020 @10:41AM (#23154515)
What's a way to implement this in practice? Does this article imply that if 1 core was writing the value of a variable (without any locking) and other cores were simply reading the value of that variable without any locking, it will just work correctly due to underlying CPU cache coherency protocols?