Are the RMI requests handled per process or thread on server side?
Are the RMI requests handled per process or per thread on 开发者_C百科the server side?
The short answer is that it isn't specified. The RMI specification says something like 'there is no guaranteed association between client threads and server threads'.
About all that you can deduce from that is that you cannot assume RMI is single-threaded. In practice you will have found that your RMI remote object can be called by multiple server-side threads at the same time. So synchronization is up to you.
This is the best sense I can make out of your question: I must say I don't know what the difference between 'per-process' and 'per-thread' actually means.
According to this:
8: On the server side, when a client connects to the server socket, a new thread is forked to deal with the incoming call. The original thread can continue listening to the original socket so that additional calls from other clients can be made.
精彩评论