I have used a similar program as below to achieve multithreading to run parallel process but before completing few process my thread is moving to another (or) it is not completing the process completely, I am write some 5 files in parallel with data per thread where out of 5 sometimes 4 files are only writing. Please see the same code I refer,I have used a similar program as below to achie