I have a C++ program which appends new text to a file. Multiple
instances of this program may run concurrently, hence there is a
possiblity that 2 or more instances (say C1 and C2) of this C++ program
will be modifying the file at the same time.
I want to make sure that C1 can finish appending it's changes to the
file, before C2 starts to append its changes.
How do I handle this concurrently update issue so that the changes made
by C1 and C2 are not interpersed with each other's?