Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. producer = Thread.new {
  2. c = 0
  3. while true do
  4. 5.times do # enqueue five elements per iteration
  5. q << c
  6. c += 1
  7. end
  8. end
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement