How to implement a M/M/1 queue in C++

martial's Avatar, Join Date: Jan 2007
Newbie Member
Hi everyone:

Can anyone help me how to implement a M/M/1 queue in C++?

Thanks in advance for your help
DaWei's Avatar, Join Date: Dec 2006
Team Leader
I don't know what you want. A queue is a queue. The C++ STL has both a vector and deque. Your notation merely implies constraints on the arrival time, service time, and number of servers. Evaluating such a queue can be done either mathematically or by simulation.
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
DaWei,
He is looking for an implementation of http://www.eventhelix.com/RealtimeMa..._m_1_queue.htm

martial,
Try start on your work and we can definitely help you on this.
DaWei's Avatar, Join Date: Dec 2006
Team Leader
The question is: is he trying to simulate the operation of such a queue, determine its characteristics mathematically, using C++, or just implement a single-server queue?
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Quote:
Originally Posted by DaWei
is he trying to ....