I'm unclear of the need for Thread's 2-4. But be that as it may, if you need to write to the file asynchronous relative to Thread 1, you might consider using a queue - for instance create a thread...