From: Phlip Date: 2006-11-17T00:05:04+09:00 Subject: Re: Threading Question Mike Houghton wrote: > I'm new (very new!) to Ruby but not to programming. I have a > Thread/class inheritance question.I'm trying to make a simple timer > class that extends Thread and repeats a block times and each > repetition separated by seconds. Here's the code Are you coming from Java? It sets a bad example for threading. Don't use it just for conveniences Here's an example how Ruby does thready things without the risk and complexity of threads in your own code: require 'timeout' status = Timeout::timeout(5) { # Something that should be interrupted if it takes too much time... } Look up Timeout, and it might do what you need, or lead to a similar technique. -- Phlip http://www.greencheese.us/ZeekLand <-- NOT a blog!!!