rpcgen can generate MT-safe server stubs that operate in the MT Auto mode. See "MT Auto Mode" for the definition and example code.