In our project which supports multiplatform (Linux, Solaris, Windows) and coded in c,c++ , we are using ONC Rpc for IPC. Recently there is a requirement to have an application server to work on two different programs no.
I have tried following to test.
Created a multithread application Within that creted two worker threads
In first thread I’m
a) Creating a tcp transport
b) Registering the transport
c) Calling svc_run
In second thread I’
a) Creating second tcp transport
b) Registering the transport with a different program no
c) Calling svc_run*
I have tried this on RHEL 4 and its workind fine for me. But is it valid to register two programs no and call svc_run in two different threads?
I have tried searching over net but was not able to find any clear information on this.