Thread 사용법 및 코드예제Thread를 사용하는 주요 방법과 코드 예제는 다음과 같습니다:Thread 클래스 상속:class MyThread extends Thread { public void run() { // 스레드에서 실행할 코드 }}MyThread t = new MyThread();t.start();Runnable 인터페이스 구현 (더 많이 사용됨):class MyRunnable implements Runnable { public void run() { // 스레드에서 실행할 코드 }}Thread t = new Thread(new MyRunnable());t.start();람다식을 사용한 Runnable 구현:Thread t = new Threa..