Specifications
Sun Services
Java™ Programming Language
Module 13, slide 25 of 37
Copyright 2005 Sun Microsystems, Inc. All Rights Reserved. Sun Services, Revision F
Thread Interaction – wait and notify
• Scenario:
Consider yourself and a cab driver as two threads.
• The problem:
How do you determine when you are at your
destination?
• The solution:
• You notify the cab driver of your destination and
relax.
• The driver drives and notifies you upon arrival at
your destination.










