What is multithreading wait notify java interview question interviewdot

805 views · Published 30 September 2013 · 1:55 · Indexed 22 September 2026

Channel: Interview DOT · 2013 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. What is multithreading wait notify java interview question interviewdot
What is multithreading and what are the methods for inter-thread communication and 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 enters into a waiting state.

 notify() or notifyAll() : To remove a thread from the waiting state, some other thread must make a call to notify() or notifyAll() method on the same object.
A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

More from this channel