'JAVA'에 해당되는 글 51건

  1. 2008.12.10 ThreadFactory에서 Thread 생성
2008. 12. 10. 22:55

ThreadFactory에서 Thread 생성

import java.util.concurrent.Executors;
import java.util.concurrent.ThreadFactory;

public class Main{
    public static void main(String [] args){
        ThreadFactory factory = Executors.defaultThreadFactory();
        Factory.newThread(new Printer("java")).start();
    }
}