events - Simulation in java using priority queues -


i've been asked simulate events store 1 counter in java using priority queue. person being served , if arrives during time increment number of people in queue.i figured out have use comparator far seems can use comparator sorting , not queuing , de-queuing events.

if using discrete event modeling perspective, use priority queue schedule sequence of events drive system. can find tutorial paper on how this, along java implementation single server queue exponential interarrival , service times, in winter simulation conference paper archives.


Comments

Popular posts from this blog

Using 'OR' and 'AND' in SQL Server -

python - Finding intersection between ellipse and a line -

c++ - NetBeans Remote Development with additional configuration -