Changed get_minimum_pid to only consider a specified cpu.