class DEBUGGER__::Session

def update_thread_list

def update_thread_list
  list = Thread.list
  thcs = []
  unmanaged = []
  list.each{|th|
    if thc = @th_clients[th]
      if !thc.management?
        thcs << thc
      end
    else
      unmanaged << th
    end
  }
  return thcs.sort_by{|thc| thc.id}, unmanaged
end