Last Modified: 17/06/2014 (Thread + Controllo_deadlock)