The above applet uses the Ptolemy II Discrete Event (DE) domain to illustrate two ways to implement M/M/1 queues. This applet is implemented in MoML, as shown in a Vergil block diagram.