From: Shashank Date Date: 2003-07-21T11:58:59+09:00 Subject: Re: not terminatinga process "Kurt M. Dresner" wrote in message [snip] > too. So right now I have a busy waiting loop in my main thread, and it > uses up all my CPU time. This is not a permanent solution. What is a > good solution to this problem (such that I can kill the processes when I > want to)? You may want to take a look at the methods of the Thread class: (especially the 'join' method to wait in the main thread without being 'busy' and the 'kill' method to kill the threads when you want to). C:\>ri Thread This is a test 'ri'. Please report errors and omissions on http://www.rubygarden.org/ruby?RIOnePointEight ------------------------------------------------------------------------ class: Thread ------------------------------------------------------------------------ Thread encapsulates the behavior of a thread of execution, including the main thread of the Ruby script. In the descriptions that follow, the parameter aSymbol refers to a symbol, which is either a quoted string or a Symbol (such as :name). ------------------------------------------------------------------------ [], []=, abort_on_exception, abort_on_exception, abort_on_exception=, abort_on_exception=, alive?, critical, critical=, current, exit, exit, fork, join, key?, keys, kill, kill, list, main, new, pass, priority, priority=, raise, run, safe_level, start, status, stop, stop?, terminate, value, wakeup ------------------------------------------------------------------------ HTH, -- shanko