Hi everyone: Can anyone help me how to implement a M/M/1 queue in C++? Thanks in advance for your help
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.
DaWei, He is looking for an implementation of http://www.eventhelix.com/RealtimeMantra/CongestionControl/m_m_1_queue.htm martial, Try start on your work and we can definitely help you on this.
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?