FileWriterApp is a .NET 6 console application that demonstrates safe, synchronized access to a shared file from multiple concurrent threads.
The program launches a configurable number of threads, each of which writes multiple entries to a shared text file while ensuring:
- No data corruption
- Sequential line numbering
- Proper thread synchronization
- Cross-platform compatibility (Windows + Linux/Docker)
- Creates a text file at
/log/out.txt - Initializes the file with a header line: