Java SE/setDaemon() 썸네일형 리스트형 setDaemon() // This class extends Thread class MyThread extends Thread { MyThread() { // Thread can be set as a daemon thread in the constructor setDaemon(true); } // This method is called when the thread runs public void run() { // Determine if this thread is a daemon thread boolean isDaemon = isDaemon(); } } // Create the thread Thread thread = new MyThread(); // Thread can be set as daemon by the creator.. 더보기 이전 1 다음