title: How to close all Threads running in my java application?
body: <p>I want to close all thread which I started previously.</p>
  
  <p><strong>Thread.currentThread()</strong> gives me current thread, but what about others? How can I get them?</p>
  
  <p>I think <strong>Thread.activeCount()</strong> returns the count of active threads in thread's  thread group, but I does not use <strong>ThreadGroup</strong>,
  I just started threads using <strong>Thread thread = new Thread(new MyRunnable())</strong>.</p>
  
  <p>So how can I achieve this?
  thanks in advance...</p>