Remoting Interview Question and Answers

6. Define Application Domains?
 
  • A process is essentially a running application.
  • Each .NET application runs in its own process.
  • Each process is subdivided into one or more application domains an application domains acts like a process but uses fewer resources.
 
Your Name Your Email-ID
Your Answer
7. List out the advantages of the App Domains?
 
  • It can be independently started and halted.
  • They are secure, light weight, and versatile.
  • It provides fault tolerance.
  • It also supports a variety of events including Assembly Load, Assembly Resolve, Process Exit, and Resource Resolve.
 
Your Name Your Email-ID
Your Answer
8. What is called Marshaling by Value?
 
  • When an object is marshaled by value, the client receives a copy of the object in its own application domain.
  • It can then work with the object locally and has no need for a proxy.
 
Your Name Your Email-ID
Your Answer
9. What is called Marshaling by Reference?
 
  • Marshaling by reference occurs when a client makes a call on an object running on a remote server.
  • The call is marshaled to the server by the proxy and the results of the call are then marshaled back to the client.
 
Your Name Your Email-ID
Your Answer
10. What is called Lease manager?
 
  • The lease manages is running in the background of each App Domain that keeps track of each server object and its associated lease.
  • The primary function is to periodically examine the leases for time expiration and invoke a sponsor it the lease has expired.
 
Your Name Your Email-ID
Your Answer
123456 Page 2 of 6