I want to get a line of word from my file, type it and delete it at the same time, but it's not deleting until the thread finished, and when I'm doing it in a multi thread its getting the same word at the same time. How
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.