From: ruby-lang@... Date: 2005-10-07T04:56:07+09:00 Subject: Q: How to get backtrace of another thread? How do I get a backtrace of another (possibly running) Thread? I want to get an idea of what is blocking in other threads, and therefore want to periodically dump a list of threads with their backtraces to get a feeling what they're up to. Ideas which did not work: - begin otherThread.raise("Gotcha!") rescue RuntimeError otherThread.resume end ...raises the exception in otherThread, not the calling thread. - Kernel.set_trace_func() . ...doesn't seem to keep track of Threads(?). ...doesn't say on which function it is blocking. Regards, Rutger. -- Rutger Nijlunsing ---------------------------------------------------- never attribute to a conspiracy which can be explained by incompetence ----------------------------------------------------------------------