Use threading to run multi processes.