Skip to content

Glossary: Java Beyond the Basics

synchronized

A keyword on a method so only one thread at a time can run it, preventing race conditions.

Where the book teaches it

Related terms

Race conditionAtomicInteger