I have 3 processes (equal priority)
Mutex priority: P1(1 priority), P2(2 priority), P3(timer)(3 priority)
If we assume that p3 comes and receives the mutex, then p2 comes and waits for the mutex, after that p1 comes, and also waits for mutex
if p3 is a mutex release, then p1 should get a mutex not p2 .
How to do this in C or C ++.
Note: all processes run inside threads with the same priority.
OS - Xp windows
source share