class Main { public static void main(String[] args) { Runnable task = new MyTask(); Thread worker1 = new Thread(task); Thread worker2 = new Thread(task); worker1.start(); // Will make a call to task.run() worker2.start(); } }