Terminal User
Terminal User

Reputation: 883

Are the RMI requests handled per process or thread on server side?

Are the RMI requests handled per process or per thread on the server side?

Upvotes: 1

Views: 992

Answers (2)

user207421
user207421

Reputation: 310980

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.

Upvotes: 2

g051051
g051051

Reputation: 1041

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.

Upvotes: -1

Related Questions