adp v2 small set

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/4

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

5 Terms

1
New cards

How does synchronized guarantee memory consistency?

It makes threads read the latest values from memory

2
New cards

Why do memory consistency errors occur?

Because CPUs have multiple cores with individual catches that have unpredictable refresh timing

3
New cards

What problems can memory inconsistency cause in a concurrent program?

Can cause outdated or incorrect values which causes logic errors

4
New cards

What can happen if multiple threads modify a shared variable without synchronisation?

The shared variable value can be overwritten causing lost or corrupted data

5
New cards

What are the negative impacts of a race condition?

Data corruption, instability and security vulnerabilities