From: Matt Pattison Date: 2002-08-01T16:35:25+09:00 Subject: "gets" blocking process not thread (in Windows only) The problem with my program is that (in Windows) gets seems to block the entire process rather than just the current thread. This program works as expected in linux, with the poll and process threads running continuously whilst the input thread is waiting for user input. In windows however all threads appear to halt as soon as the gets line is reached in the input thread, and only continue once user input has been given. Can anyone help? Thanks. Matt #This is my program simplified $input = Thread.new { while true command = gets.chomp # ^^^^ do_something command end } $poll = Thread.new { while true read_data_from_socket_into_queue end } $process = Thread.new { while true process_data_from_queue end }