change keep track of 10 processes to 5 processes to accelerate the program.