What is difference between wait and sleep methods in Java?

Pubblicato il: 03 novembre 2019
sul canale di: Tech·WHYS
154
3

What is difference between wait and sleep methods in Java?
Aug 3, 2019

Java sleep() and wait() – Discussion The major difference is that wait() releases the lock or monitor while sleep() doesn’t releases the lock or monitor while waiting. wait() is used for inter-thread communication while sleep() is used to introduce pause on execution, generally. ... it will wake up the sleeping thread.


··········

“Be competent, be more skilful than others. Here you will find the answer to all of your questions.”

✋ The purpose of our channel is to create EDUCATIONAL content. That was our intention with this video as well. We would like to give you COMPLETE INFORMATION on the subject, so unfortunately we can also discuss elements that may be hurtful to people.


In questa pagina del sito puoi guardare il video online What is difference between wait and sleep methods in Java? della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Tech·WHYS 03 novembre 2019, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 154 volte e gli è piaciuto 3 spettatori. Buona visione!