Locker sincronizado de hilo Java

synchronized void incrementSync() {
    count = count + 1;
}
Agreeable Albatross