Skip to content

Instantly share code, notes, and snippets.

@taka2
Created March 13, 2012 02:23
Show Gist options
  • Select an option

  • Save taka2/2026202 to your computer and use it in GitHub Desktop.

Select an option

Save taka2/2026202 to your computer and use it in GitHub Desktop.
終わらないプロセス
public class test {
public static void main(String[] args) throws Exception {
new Thread(new Runnable() {
public void run() {
while(true) {
try {
System.out.println("Hello!");
Thread.sleep(1000);
} catch(InterruptedException e) {
// ignore
}
}
}
}).start();
Thread.sleep(5000);
//System.exit(0);
throw new NoClassDefFoundError();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment