Hello,
Recently i have been working on a simple Simulation Code (Discrete Event Simulation) with a single queue and single server and deterministic number of clients with Python , i just want to know if my code is correct or i'm i missing something , because i'm having some difficulites in the Queue , how to fill it if the new Arrivals of a clients are < to the Departure Time of a previous Client .. my code work but its just fill one client at a time then pop it from the queue to start the service .. etc
what i'm i missing here ?
What I have tried:
I have Tried this code here :
[Python] Simulation Queue Python - Pastebin.com[
^] i wrote it using class , and i still didn't try Simpy Framework .
i'm supposed to have the algorithm like this .. the first client arrive , the server start the service directly and then after it finish the client leave , while the server is busy , there is a possibility that another client has come , so the server can't treat the 2nd client , and the 2nd will enter the Queue , waiting for the 1st client to finish .. and so on , which means if the third client come he also enter the Queue , My Code he is only queuing one client at a time , i mean the Queue never fills up with the clients waiting , it fill only one client , then pop it when server finish , then queuing the 3rd client .. and so on .. you got my point here ?