Revision: 52609
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 27, 2011 19:21 by corporem
Initial Code
public class ThreadDemo { private static Logger logger = Logger.getLogger(ThreadDemo.class.toString()); static { new Thread(new Runnable() { public void run() { while (true) { try { Thread.sleep(100L); } catch (InterruptedException e) { logger.fine("Interrupted : " + e.getMessage()); } logger.info("job"); } } }).start(); } public static void main(String[] args) { logger.info("start"); } }
Initial URL
Initial Description
Initial Title
Thread start in Static Initialization Blocks
Initial Tags
Initial Language
Java