4 ms·
It's worse than that. On commodity hardware you can't prevent having global state because the processor is making those choices for you. L2/L3/Main Memory are
by kasey_junk 13y ago
It's worse than that. On commodity hardware you can't prevent having global state because the processor is making those choices for you. L2/L3/Main Memory are all mutable global states that your data gets put into. Of course, modern processors are pretty good at making sure they don't corrupt that global state, but drill down far enough & you have global mutable state, that needs to be synchronized around.
That said, if you aren't at that level you can almost certainly write lock free code (and you should) by apply design principals.
- the_af 13y agoIsn't this basically what TFA is saying? Who is talking about the hardware level?