modify the inheritance relationship between parasrv and paralg, tested locally(with serial and paralel).