Process A and B both simultaneously open some data file and edit it's several data chunks. Each process uses FileStream
and its Lock()
and Unlock()
methods. Thus, at the same time, one and the same piece of data can be edited only by process A or В but not by both simultaneously.
Is it possible to get the notification for A process when B process edited the file with detailed info about the position and length of the edited data chunk?
Some mechanism keeps track of the locking and unlocking. Perhaps the same mechanism can provide the information that interests me. I do not claim this, but I hope for such an opportunity is existing.