Page 1 of 1

Given a study room booking system that manage 100 study rooms with two functions: book (numberofroom) and cancel (number

Posted: Thu Jun 02, 2022 8:41 am
by answerhappygod
Given A Study Room Booking System That Manage 100 Study Rooms With Two Functions Book Numberofroom And Cancel Number 1
Given A Study Room Booking System That Manage 100 Study Rooms With Two Functions Book Numberofroom And Cancel Number 1 (57.51 KiB) Viewed 28 times
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.