Re: Threads issue.



Preaty good experience, isn't it? I know what is going on! :-)
Thread#run in main thread is invoked earlier than myThread is stopped.
myThread is stopped when the main thread is fineshed (so after
myThread.run statement). That is why Thread#join returns exception (dead
lock) becouse myThread stops when condition in while in my() function is
true.

Thanks for help. Now everything is clear.


--
Posted via http://www.ruby-forum.com/.

.