cb_threads.rb