Definicao da função responsável por dividir as tarefas entre as threads.
 Merge branch 'master' of https://github.com/mateusgreg/Trabalho2-SO-C