1/4
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
How does synchronized
guarantee memory consistency?
It makes threads read the latest values from memory
Why do memory consistency errors occur?
Because CPUs have multiple cores with individual catches that have unpredictable refresh timing
What problems can memory inconsistency cause in a concurrent program?
Can cause outdated or incorrect values which causes logic errors
What can happen if multiple threads modify a shared variable without synchronisation?
The shared variable value can be overwritten causing lost or corrupted data
What are the negative impacts of a race condition?
Data corruption, instability and security vulnerabilities