Multi-thread RPC server???

Multi-thread RPC server???

Post by Janet_Johns.. » Sun, 18 Dec 1994 05:30:34



Quote:Jimmy Tu writes:
>I am currently implementing the server using the ONC RPC in solaris V2.3.
>The server need to serve multiple clients concurrently, and thus I am
>looking for ways to make use of the multi-thread feature from Solaris V2.3.

One approach would be to use the DCE RPCs which are thread-safe.
Please let me know if you would like information regarding DCE on
Solaris V2.3.

Regards,

Janet Johnston
Transarc

 
 
 

1. Multi-threading RPC servers

I have an application that currently (under SunOs 4.x) implements a
multi-threaded RPC server.  This is based on the ideas in the Nutshell
book (Power Programming with RPC's if my memory is correct) and works
reliably using the LWP libraries available with SunOS 4.x.

I now come to wish to port this to a Solaris 2.3 environment.  Quite
clearly all of the Sun documentation indicates that the server code is not
MT-safe, and indeed (well you've got to touch the paint to see if it really
IS wet!) I get weird and wonderful results if I try a very literal
translation of the LWP version.  

Whilst the basic calling mechanism does not break, the return mechanism
seems to sometimes return garbage and generally fall apart quite
dramatically, even with a single RPC operation in progress at any one time.
The design does run a thread per RPC operation, so the single RPC operation
situation does create a thread for the operation, whilst the main thread
returns to listening for requests.  Needless to say, everything is fine
if the server is kept truely single threaded.

Does anyone have any ideas where the MT-unsafeness lies in the RPC server
code, or know of likely sources of information on this subject?

Many thanks for your anticipated help...

--------------------------------------------------------

                        Voice:    +44 121 707 9163

2. Newer sound card question

3. 's on multi-threaded RPC server ?

4. Annoying non-feature of Gnome

5. multi-process + multi-thread servers?

6. [2.5.30] 3c59x MII problems w/ 3c905B

7. Multi-thread process -threads in different schedulers?

8. cd in scripts

9. Single thread/Multi-thread

10. Design of a server: multi-threaded or multi-processes?

11. Server Multi-Thread in C++ (Problem)

12. Is it possible to make multi-thread socket server program?

13. Multi-Thread on Multi-CPU machine