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

Newbie Member
10Jan2007,08:30   #1
martial's Avatar
Hi everyone:

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

Thanks in advance for your help
Team Leader
10Jan2007,10:13   #2
DaWei's Avatar
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.
Go4Expert Founder
10Jan2007,10:47   #3
shabbir's Avatar
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.
Team Leader
10Jan2007,20:44   #4
DaWei's Avatar
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?
Go4Expert Founder
10Jan2007,21:42   #5
shabbir's Avatar
Quote:
Originally Posted by DaWei
is he trying to ....