Friday, 22 April 2016
How does thread communicate with each other ?
When threads share resources, communication between Threads is important to coordinate their efforts.
Object class
wait()
,
notify()
and
notifyAll()
methods allows threads to communicate about the lock status of a resource.
No comments:
Post a Comment
Note: only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: only a member of this blog may post a comment.