Using IO#puts in loop when working with threads in Ruby by makaroni4 Sometimes when looping with #thread in #ruby IO#puts produces bad output missing new string symbols. Example how to avoid it is under the cut