Question: This problem studies the interaction between real - time scheduling and mutual ex - clusion, and was formulated by Kevin Weekly. Consider the following excerpt
This problem studies the interaction between realtime scheduling and mutual ex
clusion, and was formulated by Kevin Weekly.
Consider the following excerpt of code:
pthreadmutext X; Resource X: Radio communication
pthreadmutext Y; Resource Y: LCD Screen
pthreadmutext Z; Resource Z: External Memory slow
void ISRA Safety sensor Interrupt Service Routine
pthreadmutexlock&Y;
pthreadmutexlock&X;
displayalert; Uses resource Y
sendradioalert; Uses resource X
pthreadmutexunlock&X;
pthreadmutexunlock&Y;
void taskB Status recorder task
while
static timet starttime time;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
