How to wait on multiple Blocking Queues in Java?
For example, if have a customer who wants to enter into a waiting Lounge. There are 3 waiting Lounges and each lounge has a fixed number of seats.
Considering this a concurrent programming question, how can a customer wait on all of this simultaneously.
terminal.waitingArea1.enterWaitingArea(this);
terminal.waitingArea2.enterWaitingArea(this);
terminal.waitingArea3.enterWaitingArea(this);
If I get into a single area, I should give up waiting on other's. How can this be done?