Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Why wait(),notify() and notifyAll() in the Object class?

Tags: object

Why wait(), notify() and notifyAll() methods have been defined in the Object class?Java concurrency model uses locks to implement mutually exclusive access to objects in a multi-threaded environment and locks are associated with every object in Java (of type 'Object'), not only with Threads.wait, notify/notifyAll methods are used by threads to communicate with each other while trying to access a



This post first appeared on Geek Explains: Java, J2EE, Oracle, Puzzles, And Problem Solving!, please read the originial post: here

Share the post

Why wait(),notify() and notifyAll() in the Object class?

×

Subscribe to Geek Explains: Java, J2ee, Oracle, Puzzles, And Problem Solving!

Get updates delivered right to your inbox!

Thank you for your subscription

×