"volatile" keyword.
something new just appeared.
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Andrei
11 December 2020, 15:52
https://www.youtube.com/watch?v=nhYIEqt-jvY&ab_channel=JakobJenkov
tl;dr - it stores the variable in main ram so if it is modified the other thread can see the new value.
+1