package threadPoolConTerminazione; public class ProvaThreadPool { public static void main(String[] args) { final int N = 8; final int T = 4; Repository tasks = new Repository(); Repository results = new Repository(); FunzioneSemplice funz = new FunzioneSemplice(); ComputerThread[] ct = new ComputerThread[T]; Generatore generatore = new Generatore(N,tasks); Stampatore stampatore = new Stampatore(results); generatore.start(); stampatore.start(); System.out.println("Creazione dei thread nel pool "); for(int i=0; i(tasks, results, funz); ct[i].start(); } System.out.println("Attesa terminazione thread del pool ..."); for(int i=0; i