The termination of a process
- A Java process will terminate only when all threads have finished
(excepting the daemon threads).
- The thread accepting socket connections from the port must be turned
to be a daemon thread when there is no exported objects.
- A thread dispatching remote calls to local objects will finish
when the client side will close the socket, because the reference counter
reaches zero.
- Thus a process may terminate when there is no exported objects and
no remote process has references to local objects.