title: java threads common questions
body: <p>I have some questions about java threads:</p>
  
  <ol>
  <li>if I have a class that runs a number of threads when one thread reaches to exit(1) command line will it exit the thread or the whole application including the other threads?</li>
  </ol>
  
  <p>2.how can I make one thread notify all other threads that run from the same class to stop?</p>
  
  <p>3.does using synchronized make only one thread ,regardless his source in the code, to do this part of code? </p>
  
  <p>4.if I am running a thread in java using run() if I call a method from inside the run() does this still running as a thread or it is not allowed?</p>