Mark Guo wrote:How synchronize between Threads ?
Without a more specific question, the best answer I can give is to google for
java concurrency tutorial or check out Bian Goetz's
Java Concurrency in Practice or Doug Lea's
Concurrent Programming in Java. Or perpahs to say, "Using the synchronized keyword," as the other respondent did, but that doesn't really answer your question, I imagine.