new Thread()는 어떻게 실행될까
·
JAVA
java.lang에 있는 Thread.class를 보면서 Thread가 생성되는 과정을 깊게 공부해보고자 한다! There are two ways to create a new thread of execution. One is to declare a class to be a subclass of Thread. This subclass should override the run method of class Thread. An instance of the subclass can then be allocated and started.The other way to create a thread is to declare a class that implements the Runnable interface. That ..