문제

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.

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top