refine code, decided to use share memory comunicate with sub process

refine code, decided to use share memory comunicate with sub process