Fair play

Report a typo

Three threads (t1, t2, t3) are waiting to acquire a permit from semaphore s. They entered the waiting queue in the respective order. You can read the initialization of s below:

Semaphore s = new Semaphore(1, true);

Which thread will be granted access next?

Select one option from the list
___

Create a free account to access the full topic