add a flag to switch between single process and mutilProcess.

Add a flag (processCount)to switch between single process and mutilProcess.