package threadPoolConcurrencyDue; import java.util.concurrent.*; public class Stampatore extends Thread { LinkedBlockingQueue rep; public Stampatore(LinkedBlockingQueue results) { this.rep = results; } public void run() { while(true) { T i; try { i = rep.take(); System.out.println("Estratto "+i.toString()); } catch (InterruptedException e) { // fine lavori return; } } } }