You are developing a data intensive application such that the integrity of the database is maintained. In order to achieve this, you follow the “All or Nothing” rule when updating the database.
What is the correct sequence of activities that needs to be followed when programming this application?
- Lock Data > Release Lock > Change Data > Read Data.
- Read Data > Lock Data > Change Data > Release Lock.
- Lock Data > Read Data > Change Data > Release Lock.
- Change Data > Lock Data > Read Data > Release Lock.