szafka syncronizowana wątkiem Java
synchronized void incrementSync() {
count = count + 1;
}
Agreeable Albatross
synchronized void incrementSync() {
count = count + 1;
}