I read about sigelton pattern with multithreads and I found that is implemented use synchronized .
my question is can I use wait() + notify() or notifyAll() instead synchronized ?? and if yes which better synchronized or wait()+ notifyAll() ???
Aucun commentaire:
Enregistrer un commentaire