frameslice : add compute_nb_thread_parameter function