Glossary: Java Beyond the Basics
Race condition
A bug where the result depends on the timing of threads, such as two threads both reading 500 and both writing 501, so the counter loses an update.
Glossary: Java Beyond the Basics
A bug where the result depends on the timing of threads, such as two threads both reading 500 and both writing 501, so the counter loses an update.