Re: Threads issue.
- From: Marcin Tyman <m.tyman@xxxxxxxxxx>
- Date: Sat, 30 Jun 2007 05:58:50 +0900
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/.
.
- References:
- Threads issue.
- From: Marcin Tyman
- Re: Threads issue.
- From: Lionel Bouton
- Re: Threads issue.
- From: Marcin Tyman
- Re: Threads issue.
- From: Lionel Bouton
- Threads issue.
- Prev by Date: Re: patten match
- Next by Date: Re: Active Record not found
- Previous by thread: Re: Threads issue.
- Next by thread: Re: Threads issue.
- Index(es):