Question: Using Java create an array-based queue implementation to simulate two kinds of bank queues. One with 3 tellers and one line, and another with 3
Using Java create an array-based queue implementation to simulate two kinds of bank queues. One with 3 tellers and one line, and another with 3 tellers and three lines, run 100 customers and compare the two methods' wait times for customers. Two random integers are generated, each between 1 and 5, one is the interarrival time and the other is processing time. When the customer arrives, if the bank has the three lines the customer enters the shortest line, or if it is one line they enter the back. until a teller is available and the first in queue moves to that teller and stays there until their time is complete.

V.S. Wat Here T GOLDEN RATPH V.S. Wat Here T GOLDEN RATPH
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
