suppose, I am having the application for movie seat reservation. scenario is, 3 different request comes at system at exact same time. neither the difference in milliseconds also... How to handle the request? how to define the critical section and what strategy i need to use. since all request are on exact same timing, so how to priorities which user should proceed first.
Asked
Active
Viewed 129 times
0
-
You don't have to decide. Request thread handling is done by the framework. You just `lock` on the same resource. – Igor Aug 14 '13 at 04:24
1 Answers
0
The concurrent request will be handled by Framework. For accessing shared resource in Code you need to apply locking mechanism. And if your program directly writing to database you need to apply database transaction locking.

Pankaj Dey
- 64
- 3
-
its good now a days, framework handles almost this control. but enthusiastic to know how it handles. – Red Swan Aug 14 '13 at 04:40