From: jake kaiden Date: 2011-05-13T19:46:06+09:00 Subject: Re: help on threads synchronization hi Zd - how about using a GLib::Timeout instead of threads? threads can gum up the works if you're not careful... ###### require 'glib2' repeat = true GLib::Timeout.add(1000){ p '=>A' true ? repeat : false } GLib::Timeout.add(1000){ p '=>B' true ? repeat : false } ###### the true or false at the end of each block tells the timeout whether to repeat the block or stop - true repeats, false stops. the argument to the #.add method is the amount of time to wait before repeating. - j -- Posted via http://www.ruby-forum.com/.