On Sat, May 10, 2003 at 03:49:00AM +0900, Thomas A. Reilly wrote:

[Nasty HTML :-P]


Sure? Works for me:

batsman@tux-chan:~/Anime$ ruby -v
ruby 1.6.8 (2003-02-28) [i386-linux]
batsman@tux-chan:~/Anime$ ruby
   $g = "START\n"
   s1 = Thread.new {
           loop {
                   sleep(2)
                   $g = gets
           }
   }
   s2 = Thread.new {
           loop {
                   sleep(1)
                   print $g
           }
   }
   s1.join
   s2.join
START
START
START
START
START
START
bla
bla
bla
bla
foo
foo
foo
bar
bar
bar
baz
baz
baz
-:14:in `join': Interrupt
        from -:14


-- 
 _           _                             
| |__   __ _| |_ ___ _ __ ___   __ _ _ __  
| '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ 
| |_) | (_| | |_\__ \ | | | | | (_| | | | |
|_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_|
	Running Debian GNU/Linux Sid (unstable)
batsman dot geo at yahoo dot com

Turn right here. No! NO! The OTHER right!