InterviewSolution
| 1. |
How Does Distributed Garbage Collection Manages The Disconnections Detected On The Client Side? |
|
Answer» RMI uses a runtime client that a virtual machine detects of the REMOTE object that is not referenced locally. It notify the server in came of any disconnections and this way the server can be updated by the object's set. The GARBAGE COLLECTOR that is distributed associate an address with each client remote object reference. It also renew the remote objects while the client still consists of the references. This mechanism will ALLOW the abnormal termination of the clients so that server can hold the remote objects that are not referenced using the message that are stopped running. The function System.exit() can be invoked for abnormal termination, as it doesn't allow the RMI runtime to send a proper messages to the server. This function will terminate the client virtual machine and will keep the remote references that will be cleaned up before exiting. The other functions that are USED for this are:
RMI uses a runtime client that a virtual machine detects of the remote object that is not referenced locally. It notify the server in came of any disconnections and this way the server can be updated by the object's set. The garbage collector that is distributed associate an address with each client remote object reference. It also renew the remote objects while the client still consists of the references. This mechanism will allow the abnormal termination of the clients so that server can hold the remote objects that are not referenced using the message that are stopped running. The function System.exit() can be invoked for abnormal termination, as it doesn't allow the RMI runtime to send a proper messages to the server. This function will terminate the client virtual machine and will keep the remote references that will be cleaned up before exiting. The other functions that are used for this are: |
|