public class Main { public static void main(String[] args) { Runnable task = new MyTask(); Runnable task2 = new MyTask(); Thread thread1 = new Thread(task); Thread thread2 = new Thread(task2); thread1.start(); thread2.start(); // Will make a call to task.run() // try { // thread1.join(); // thread2.join(); // } catch (Exception e) { } // finally {} System.out.println("Hei, dette skjer samtidig som tr?dene"); } }