Read input message from user and print it onto both console and output files use Multithread and synchronization method in C++