Salve a tutti.Ho creato due thread :

codice:
Thread t =  new Thread(pb = new ProgresBar(GraphicInterfaceAgSpit.getInstance(this)));  
t.start();         
Thread t1 = new Thread( agT = new AgSetTIMIT(iform,sfXML.getNameFile(),pb.getProgresBar()));
t1.start();
Adesso vorrei sapere quando lo stato t1 termina,dato che la sua funzione è la scrittura su file.
Come devo fare??