added number of threads while writing jobs to file