Hi,
Welcome to JavaRanch!
First, a bit of business: you may not have read our
naming policy on the way in. It requires that you use a full, real (sounding) first
and last name for your display name. A single name isn't enough. You can change your display name
here. Thanks!
Now, as to your question: you want to use wait() and notify(). This is the correct way for Threads to communicate in
Java. It allows one
thread to wait without using any CPU time, and then instantly wake up when another thread wants it to.
This is a bit involved to explain here, so it's best if you learn about it from a primary source. The
Sun tutorial on Threads has all the information you'll need. In the particular, the lessons on "Synchronizing Threads" and "Thread Pools" will give you the specifics you're after -- but
you should probably read the whole thing.
Good luck!