fork download
  1. ; GPSS World Sample File - SAMPLE1.GPS
  2. **********************************************************************
  3. * *
  4. * Barber Shop Simulation *
  5. * *
  6. **********************************************************************
  7. ; GENERATE 300,100 ;Create next customer.
  8. ; QUEUE Barber ;Begin queue time.
  9. ; SEIZE Barber ;Own or wait for barber.
  10. ; DEPART Barber ;End queue time.
  11. ; ADVANCE 400,200 ;Haircut takes a few minutes.
  12. ; RELEASE Barber ;Haircut done. Give up the barber.
  13. ; TERMINATE 1 ;Customer leaves.
  14. ;
  15.  
  16. SERV STORAGE 1
  17. SIMULATE
  18. GENERATE 20,3
  19. QUEUE AA3
  20. SEIZE A3
  21. DEPART AA3
  22. ADVANCE 10,3
  23. RELEASE A3
  24. QUEUE AA1
  25. SEIZE A11
  26. DEPART AA1
  27. ADVANCE 15,5
  28. RELEASE A11
  29. QUEUE AA2
  30. SEIZE A2
  31. DEPART AA2
  32. ADVANCE 5,2
  33. RELEASE A2
  34. TERMINATE
  35.  
  36.  
Success #stdin #stdout #stderr 0.01s 5288KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
Error: near line 1: near "GPSS": syntax error
Error: near line 16: near "SERV": syntax error