2
Look at these two codes in separate threads
Thread A
synchronized(objeto) {
while(condicao)
objeto.wait();
//operações
}
Thread B
synchronized(objeto) {
condicao = false;
objeto.notify();
//operações
}
Operations will be subject to block synchronization ?
Yes, operations will be subject to block synchronization.
– Caffé