; Barber shop ; A one-line, one-server queuing system ; Adapted from Case Study 2A of Thomas J. Schriber's "A GPSS Primer" (page II-36) ; Time unit: 1 minute ; Customer GENERATE 18,6 ; Customers arrive QUEUE Line ; Enter the line SEIZE Barber ; Capture the barber DEPART Line ; Leave the line ADVANCE 16,4 ; Use the barber RELEASE Barber ; Free the barber TERMINATE ; Leave the shop ; Timer GENERATE 480 ; Timer arrives at time 480 (8 hours) TERMINATE 1 ; Shut off the run ; Control START 1 ; Start the run END ; Exit the program
Your simulation report will show up here.

What am I looking at?

You’re looking at Web gpss.py, a web interface for gpss.py.

What do I do?

  1. Write out your gpss.py program (or use the example provided!) in the code editor on the left side of your screen.
  2. Run your simulation with the “Simulate” button in the top right corner.
  3. Analyze the simulation report that is generated or the error(s) that have occurred, which are put into the output box on the right side of your screen.

How does it work?

This page uses the gpss-server web service to run gpss.py. The “Simulate” button at the top causes the gpss.py program to be sent to the server and what it responds with is put into the output box.

The Ace code editor is also embedded in this page for — you guessed it — decoration, it has no real purpose at all; it’s completely useless. (It’s for editing code, silly.)