Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C++ (http://www.go4expert.com/forums/cpp/)
-   -   How to implement a M/M/1 queue in C++ (http://www.go4expert.com/forums/implement-m-m-1-queue-cpp-t2500/)

martial 10Jan2007 08:30

How to implement a M/M/1 queue in C++
 
Hi everyone:

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

Thanks in advance for your help

DaWei 10Jan2007 10:13

Re: How to implement a M/M/1 queue in C++
 
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 10Jan2007 10:47

Re: How to implement a M/M/1 queue in C++
 
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 10Jan2007 20:44

Re: How to implement a M/M/1 queue in C++
 
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 10Jan2007 21:42

Re: How to implement a M/M/1 queue in C++
 
Quote:

Originally Posted by DaWei
is he trying to ....

:confused:


All times are GMT +5.5. The time now is 05:28.