understanding ruby threads