mudar algoritmo threads