Hi,

In message "[ruby-talk:01250] thread-problem"
    on 00/02/06, "Michael Neumann" <neumann / s-direktnet.de> writes:

|Following prorgam, executes in a loop 10 non-ending threads and 10 threads
|which should kill
|the non-ending after one second.
|But this do not work.
|If I comment the "sleep 1" out, then all threads are killed.
|Why doesn't work this program correctly?

I thinks it's because the local variable `y' is pointing the last
created thread.  `for' does not introduce new scope. block does.

If you replace `for i in 1..10' with say `10.times do', it will work.

							matz.