varunvns.wordpress.com
Reading and Writing in Text Files with multiple programs accessing it simultaneously
Challenge: Have you ever faced a problem wherein two processes are accessing the same file, one is reading it and the other one is writing in it and one of them (mostly the reader process) gives er…