Using POSIX thread library two threads are created by this program. Main program creates a file, let say, ‘alphanumeric data.txt’. The thread one writes some alpha numeric value along with system time in this file. Second thread reads this value from file and displays the following information on screen:
Alpha Numeric Value Time when Value was written to the File by first thread Time when Value was Read by the second Thread