2 ms·
Only if you use the special instructions for that purpose. If you're just doing a regular read/write, you're vulnerable to this kind of problem. If you do use
by pjc50 3y ago
Only if you use the special instructions for that purpose. If you're just doing a regular read/write, you're vulnerable to this kind of problem.
If you do use the atomic instructions, you're guaranteed a consistent view across threads for that location. Check your platform documentation as to whether this is also a memory barrier, affecting ordering between the atomic instruction and other non-atomic instructions.