I'm not looking to start all 50 threads at once. I'm looking to use delay and start 10 threads every 5 minutes untill all 50 threads are started/running.
If i write data into a single file using multiple threads then is there any chance of data loss ? Is this method okay to write file or some other method should be used to avoid data loss(if it happens) ?
Thanks
There should be no data loss, but it is still better to use the resource for this purpose
If I am running a script and one thread fails, the data used for it will disappear from the source and I cannot see which one has to be reused.
There is no way to know which data was taken, 'cause the thread had deleted all things used before. But u could log data used before the thread will be crashed.