I have a class that i serialized objects of it. This class has states that might change by a process and serialized and saved in a file again.
The problem is that when multiple process deserialize a same file and change it's states and serialize it again, the consistency of this object (and the file that save serialized object) corrupted.
are there any mechanisms like locking , when a process deserialize an object from file, other processes can't access this file and can't deserialize it?