The program that I am writing is reading content from files that are in a folder with filename looking like this:
IP_ADDRESS.txt. The content get's submitted to the IP_ADDRESS and the file deleted. Then the next one and so on. The important thing is that the files that didn't go through must be retried again and again, in the mean time there are newly created files, which content can not be delayed by the retry procedure. That's why I am looking for rely fast or independent process (thread) to do the retrying. Your input is highly appreciated.