record the threads, fileio result to the .csv file