Question: Assume a preemptive priority system with two tasks, 1 and 2 (with 1 > 2 ), which share a single critical
Assume a preemptive priority system with two tasks, τ1 and τ2 (with τ1 > τ2), which share a single critical resource. Show with an appropriate execution scenario that a simple software flag (a global variable) at the level of application tasks is not adequate for providing safe sharing of the critical resource.
Step by Step Solution
3.51 Rating (154 Votes )
There are 3 Steps involved in it
Preemptive Scheduling with a Flawed Flag Heres a scenario demonstrating why a simple software flag is not sufficient for safe resource sharing in a pr... View full answer
Get step-by-step solutions from verified subject matter experts
