package com.cavaness.quartzbook.chapter3;
public class Test {
public static void main(String[] args) {
Thread thread = new Thread(new TestThread());
thread.start();
System.out.println("Method main:" + Thread.currentThread().getName());
}
}
package com.cavaness.quartzbook.chapter3;
public class TestThread implements Runnable {
@Override
public void run() {
System.out.println("Method run:" + Thread.currentThread().getName());
}
}