skip to main | skip to sidebar

Java Programs and Examples with Output

Pages

▼
 
  • RSS
  • Twitter
Wednesday, September 19, 2012

Programmatic Thread Dump

Posted by Admin at 7:33 AM – 0 comments
 

Describes the steps to generate programmatic thread dump in Java


import java.io.IOException;



public class Controller {

 public static void main(String[] args) throws IOException {
  MyThread my = new MyThread();
  Thread th = new Thread(my);  
  th.start();
  try {
    Thread.sleep(2000);
  } catch (Exception e) {
  } 

 }

}


Leave a Reply

Newer Post Older Post
Subscribe to: Post Comments ( Atom )
  • Popular
  • Recent
  • Archives
Powered by Blogger.
 
 
 
© 2011 Java Programs and Examples with Output | Designs by Web2feel & Fab Themes

Bloggerized by DheTemplate.com - Main Blogger