Advertisement
Shokedbrain

GPSS WORLD

Dec 18th, 2021
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.74 KB | None | 0 0
  1. PU1 EQU 1
  2. PU2 EQU 2
  3. PU3 EQU 3
  4. RAM EQU 4
  5.  
  6. SIMULATE
  7.  
  8. GENERATE (UNIFORM(4,3,7))
  9.  
  10. QUEUE RAM
  11. queue cpu1
  12. SEIZE PU1
  13. depart cpu1
  14. ADVANCE (UNIFORM(4,4,6))
  15. RELEASE PU1
  16. ASSIGN 1,2
  17. ASSIGN 2,2
  18.  
  19. queue RAM
  20. queue cpu2
  21. SEIZE PU2
  22. depart cpu2
  23. WAIT1 ADVANCE (UNIFORM(4,2,3))
  24. LOOP 2,WAIT1
  25. RELEASE PU2
  26. ASSIGN 1,3
  27. ASSIGN 2,3
  28.  
  29. queue RAM
  30. queue cpu3
  31. SEIZE PU3
  32. depart cpu3
  33. WAIT2 ADVANCE (UNIFORM(4,1.1,1.9))
  34. LOOP 2,WAIT2
  35. RELEASE PU3
  36. depart RAM,3
  37. TERMINATE
  38.  
  39. TIME GENERATE 3000
  40. TERMINATE 1
  41. START 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement