CodePhataa
Home
GoAlgo
Revision Hub
Learning Path
Challenge
Compiler
More
Toggle theme
Open menu
Concurrency | Java Quiz | CodePhataa | CodePhataa
Concurrency
Back
1 / 24
0 pts
HB
Thread A writes ready=true (non-volatile). Thread B spins on !ready. B is guaranteed to see the write:
A
Always
B
Not guaranteed without happens-before
C
If both are on one core
D
If you sleep(1)
Select an answer to continue.