A simple queue simulator on the basis of queuing theory that calculates the average Age of Information1 (AoI). It provides the queue disciplines FIFO and PS for a single queue. Customers' arrival and service times are generated from the exponential distribution based on the arrival or service rate respectively.
1: Yates et al., "Age of Information: An Introduction and Survey," 2021. Available: https://arxiv.org/pdf/2007.08564
The program takes the number of arriving customers as an input argument. If no argument is provided, the default value of 10 million customers is used. The arrival rate is set to 0.5 while the service rate is 1.