Two independent applications running concurrently attempt to update the same file located at a same file location. Both applications may read and…

Two independent applications running concurrently attempt to update the same file located at a same file location. Both applications may read and modify the file at nearly the same time, creating a possibility of race conditions, lost updates, or inconsistent data. What type of consistency problem can occur in this situation, and which synchronization technique(s) should be used to ensure that only one application can safely update the file at a time? Explain the mechanism and justify the most appropriate solution.

From the BSCPLC Assistant Manager (CSE) August 2026 – Written (BUET) exam, question 8 of 11.

More from this paper