Tried all method, dont know how do ,.....I make a loop and thread, setup for example 3 thread, when take a line from a .csv want to be unique in every thread and on loop to not repeat
i run five threads at once.
I want to run another function when these 5 operations are finished or when the error occurs, and then I need to run these 5 threads again.
for example, when one thread is successful, it will wait for the others to finish.
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