Thread: wait, notify, notifyAll

3 respostas
ricardolecheta

Which two are true?

1 - The notify method us synchronized
2 - To call wait, an object must own the lock on the thread
3 - The notify method causes a thread to immediately release its locks
4 - When a thread is waiting as a result of wait(), it releases all the locks it holds
5 - The notifyAll method must be called from within synchronized code
6 - The difference between the notify() and the notifuAll() is that notifyAll() notifies all waiting threads, regardless of the object they´re waiting on

Qual a resposta dessa :?:

3 Respostas

marciolx

4 e 5

eu acho

maxguzenski

tenho quase certeza que essa questão caiu na minha prova de certificacao!!!

eu tbm acho que eh 4 e 5

ricardolecheta

é isso mesmo! :smiley:

Criado 29 de agosto de 2003
Ultima resposta 1 de set. de 2003
Respostas 3
Participantes 3