Skip to content

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.

Where the book teaches it

Related terms

AtomicIntegersynchronizedConcurrentHashMap