A system uses a modified Counting Semaphore $S$ to manage access to a pool of 3 identical resources. The semaphore is initialized to $S=3$. The $\verb|Wait (S)|$ and $\verb|Signal(S)|$ operations are redefined to prioritize processes based on their Priority Level $(L)$, where a higher $L$ means higher priority.
- $\verb|WAIT(S, L)|:$ If $S>0, S=S-1$. If $S=0$, the process enters a Priority Queue $Q$ sorted by $L$.
- $\verb|SIGNAL(S)|:$ If $Q$ is empty, $S=S+1$. If $Q$ is not empty, the process with the highest priority $L$ in $Q$ is woken up and immediately consumes the resource $(S$ remains $0)$.
Consider five processes $\left\{P_1, P_2, P_3, P_4, P_5\right\}$ with Priority Levels $\{10,20,30,40,50\}$ respectively. They arrive in the following order:
1. $P_1, P_2, P_3$ arrive and successfully execute $\verb|Wait|$.
2. $P_4$ and $P_5$ arrive and execute $\verb|Wait|$, entering queue $Q$.
3. $P_1$ executes $\verb|Signal|$.
4. A new process $P_6$ with Priority Level $L=100$ arrives and executes $\verb|Wait|$.
Which one of the following is TRUE regarding this scenario?
- $P_4$ WILL ACQUIRE THE RESOURCE AFTER $P_1$ SIGNALS, REGARDLESS OF $P_6$.
- $P_5$ WILL ACQUIRE THE RESOURCE AFTER $P_1$ SIGNALS, BUT $P_6$ MAY CAUSE $P_4$ TO STARVE.
- $P_6$ WILL ACQUIRE THE RESOURCE IMMEDIATELY AFTER $P_1$ SIGNALS, BYPASSING $P_4$ AND $P_5$.
- THE SYSTEM IS GUARANTEED TO BE STARVATION-FREE BECAUSE THE QUEUE IS SORTED.