for (int i = 0; i { System.out.println("작업 " + taskId + " 시작"); try { Thread.sleep(2000); // 2초 대기 } catch (InterruptedException e) { e.printStackTrace(); } System.out.println("작업 " + taskId + " 완료"); });}비동기 처리ExecutorService 사용:executor.submit(() -> {...})를 사용하여 작업을 제출하고 있습니다. ExecutorService는 비동기적으로 작업을 실행할 수 있는 기능을 제공합니다. 제출된 작업은 스..