you create 6 threads to process files. and each thread process only one file. so max number of files is 6. fix