.Net Remoting - Interview Questions with Answers

What’s a Windows process?

It’s an application that’s running and has been allocated memory in the system.

What do you mean by a Windows process in regards to memory allocation?

Each process is allocated its own address space typically 4GB in which it can run. No other process can interfere in that address space.
If the process crashes, it dies alone without taking the entire OS or a bunch of other applications down.

What is the relationship between a Process, Application Domain, and Application?

A process is an instance of a running application. An application is an executable in the computer. There can be numerous processes launched of the same application (5 copies of Word running), but 1 process can run just 1 application. Hence, Process is a running instance of the application.

How to decide which to use .NET Remoting or ASP.NET Web Services?

Remoting is a more efficient communication exchange when you can control both ends of the application involved in the communication process. Remoting is excellent in case of intranet applicaton becuase of the speed.

Web Services provide an open-protocol-based exchange of informaion. Web Services are best when you need to ommunicate with an external organization or another (non-.NET) technology applications.

What is the proxy of the server object in .NET Remoting?

Proxy is copy of the server object( a thin layer) that resides on the client side and behaves as if it was the server. It delegate calls to the real server object. This process is also known as marshaling.

What do mean by remotable objects in .NET Remoting?

Remotable objects can be marshaled across the application domains. You can marshal by value, where a deep copy of the object is created and then passed to the receiver. You can also marshal by reference, where just a reference to an existing object is passed.

What are channels in .NET Remoting?

Channels represent the objects that transfer the other serialized objects from one application domain in the same computer or to different computers. A channel must exist before an object can be transferred.

No comments: