Pregunta de entrevista de Bolt

What does the synchronized keyword do

Respuesta de la entrevista

Anónimo

24 may 2019

I described using the monitor to lock, blocking other invocations of sync methods under the same object (monitor) until the lock is released and all threads could see the same values (they didn't seem to like this answer)