Question OS-SYNC-0033
EasyWhy must a shared variable be protected when several threads update it?
- A.
Unprotected updates can interleave and give wrong results (a race condition)
- B.
Threads cannot read shared variables
- C.
Sign up free to see the answer and a step-by-step explanation.