Introduction - If you have any usage issues, please Google them yourself
An analog clock provides the time to receive a telephone service (in a minute), and then the clock will be automatically added to 1 (minutes) until the time is reached.
At each moment of the clock
- perform a check to see if the current phone service has been completed,
If so, the phone is removed the phone queue, and the analog service will be removed the queue for the next phone (if it is) to continue.
- at the same time, a check is needed to determine if there is a new phone call,
If you have the time to get to the time, and generate a random service time, the service time is also recorded, and then put the phone into the phone queue,
When the customer service staff is free, the queue is processed according to the first service.
When the clock reaches the specified time, the new phone will not be answered, but the service will continue until all the phone calls in the queue to be processed.