I am looking to control transaction processing in my application. The requirement is as follows:
* If process 1 is reading rows from a table, process 2 should be able to read from the same table as well.
* If process 1 is reading rows from a table, process 2 should not be able to modify the data including inserts until the other process has completed selecting data. Therefore, process 2 should be in a wait state until process 1 has completed selecting data.
Suggestions please.
Thanks in advance,
Vivek