1. Use mutex_lock for sharedmemory. 2. Added run test shell.