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
Here's a suggestion:
Mark the time when starting the thread.
Then during the script run, add a time check action and compare the time difference with your desired value.
-> Take appropriate action.