Files for multithreading using thread monitor