Given a study room booking system that manage 100 study rooms with two functions: book (numberofroom) and cancel (number
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Given a study room booking system that manage 100 study rooms with two functions: book (numberofroom) and cancel (number
Given a study room booking system that manage 100 study rooms with two functions: book (numberofroom) and cancel (numberofroom). These two functions allow students to book one or more rooms for their friends and cancel their room booking respectively. Explain how a race condition is possible by giving one example of situation and what can be done to prevent the race condition from occurring.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!