fork download
  1. * ==========================================
  2. * LAB 8: GPSS Single Server Queue Simulation
  3. * ==========================================
  4. SIMULATE
  5.  
  6. * Transaction generation block (Arrive every 18 +/- 6 time units)
  7. GENERATE 18,6
  8.  
  9. * Customer joins the waiting queue named LINE
  10. QUEUE LINE
  11.  
  12. * Customer requests/seizes the single server (Facility) named TELLER
  13. * If TELLER is busy, the customer waits in LINE
  14. SEIZE TELLER
  15.  
  16. * Customer departs the queue LINE as service starts
  17. DEPART LINE
  18.  
  19. * Customer is served (Service time is 16 +/- 4 time units)
  20. ADVANCE 16,4
  21.  
  22. * Customer releases the facility TELLER
  23. RELEASE TELLER
  24.  
  25. * Customer leaves the system (Decrements the termination counter by 1)
  26. TERMINATE 1
  27.  
  28. * Run simulation until 100 transactions have terminated
  29. START 100
  30. END
  31.  
Success #stdin #stdout #stderr 0.01s 5320KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: near line 1: near "*": syntax error