From: elbows@... (Nathan Weston) Date: 2001-08-11T03:22:52+09:00 Subject: [ruby-talk:19501] Threading Problem When I run this code: x = "" while(x != "q\n") print("prompt>") x = readline() print x end I get pretty much what you'd expect prompt>asdf asdf prompt> etc... But if I put it in a thread t = Thread.new { } t.join() I get strange behavior... ruby basically acts as if I had reversed the print and the readline, so I get something like this asdf prompt>asdf q prompt>q Is this a bug with threading, or am I missing something? Nathan PS: If you reply directly to me your email may be "held" by my spam filter, but you can release it by sending another email to confirm that you are a real person and not a spam bot.