What is difference between wait and sleep methods in Java?

Veröffentlicht am: 03 November 2019
auf dem Kanal: 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.


Auf dieser Seite können Sie das Online-Video What is difference between wait and sleep methods in Java? mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Tech·WHYS 03 November 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 154 Mal angesehen und es wurde von 3 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!