se adotti il multithreading ti conviene usare un mutex