class Servere implements Runnable{ private FellesBord bord; private int antall; public Servere(FellesBord bord, int antall){ this.bord = bord; this.antall = antall; } public void run(){ try { int antallServert = 0; while (antallServert < antall){ bord.hentTallerken(); System.out.println("Hentet en tallerken."); antallServert++; } } catch (InterruptedException e) { System.out.println("Vi ble spent ben p?"); System.out.println(e); } } }