Please send your Questions & Answers or Feedback to "mohan@javabook.org"
How to make application thread-safe ?
You should use the word synchronized to mark the critical section of code. You may also use other methods of thread synchronization (see wait(), notify(), notifyAll() etc.