SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. S1: wait(foodOrder)
  2. S2: eat()
  3. S3: signal(foodOrder)
  4.  
  5. Beginning foodOrder = 4
  6.  
  7. Matt orders
  8. Matt S1: foodOrder value = 3
  9. Matt S2: eat()
  10.  
  11. James orders
  12. James S1: foodOrder value = 2
  13. James S2: eat()
  14.  
  15. Larry orders
  16. Larry S1: foodOrder value = 1
  17. Larry S2: eat()
  18.  
  19. Laura orders
  20. Laura S1: foodOrder value = 0
  21. Laura S2: eat()
  22.  
  23. Jessica tries to order
  24. Jessica S1: foodOrder = (0{Jessica})
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top