C's memory model made (some) sense when computers were very slow and mostly isolated but it is a complete disaster for code connected to the internet.