From: Walle Wallen Date: 2010-05-26T19:38:19+09:00 Subject: Re: how to achieve parallelism, using threads? > So you want the main thread to do some work in parallel with the other > thread but then wait for it before exiting the program? > Then, you should start the thread, then do main's work, and then > finally join the thread: That achieves the same result, or close to it. I don't want the main thread to wait for the second thread do finish, but in the same time I have to, otherwise the program crashes. So, the main threads should launch a seconds thread, and then continue with it's work, and ignore the second thread. The seconds thread should run in it's on speed, and don't have to finish before the main thread/loop does. Hehe, I'm having a hard time explaining what I'm trying to achieve //Walle -- Posted via http://www.ruby-forum.com/.