What is multithreading? what are the methods for inter-thread communication? what is the class in which these methods are defined?
?Multithreading is the mechanism in which more than one thread run independent of each other within the process. wait (), notify () and notifyAll() methods can be used for inter-thread communication and these methods are in Object class. wait() : When a thread executes a call to wait() method, it surrenders the object lock and … Read more