Interview Questions:. Net remoting

Source: Internet
Author: User

Interview Questions:. Net remoting

1. What's a Windows Process?

It's an application that's running and had been allocated memory.

2. What's typical about a Windows Process in regards to memory allocation?

Each process is allocated its own block of available Ram space, no process can access another process 'Code or data. if the process crashes, it dies alone without taking the entire OS or a bunch of other applications down.

3. Why do you call it a process? What's different between Process and Application in. net, not common computer usage, terminology?

A process is an instance of a running application. an application is an executable on the hard drive or network. there can be numerous processes launched of the same application (5 copies of word running), but 1 process can run just 1 application.

4. What distributed process frameworks outside. Net do you know?

Distributed Computing Environment/Remote Procedure CALS (DEC/RPC), Microsoft Distributed Component Object Model (DCOM), Common Object Request Broker Architecture (CORBA), and Java Remote Method Invocation (RMI ).

5. What are possible implementations of distributed applications in. Net?

. Net remoting and ASP. NET web services. If we talk about the framework class library, noteworthy classes are in system. runtime. remoting and System. Web. Services.

6. When wocould you use. Net remoting and when Web Services?

Use remoting for more efficient exchange of information when you control both ends of the application. use Web Services for Open-protocol-based information exchange when you are just a client or a server with the other end belonging to someone else.

7. What's a proxy of the server object in. Net remoting?

It's a fake copy of the server object that resides on the client side and behaves as if it was the server. it handles the communication between Real Server object and the client object. this process is also knownFinancialing.

8. What are remotable objects in. Net remoting?

Remotable objects are the objects that can be stored aled into ss the application domains. you can specify Al by value, where a deep copy of the object is created and then passed to the specified er. you can also specify Al by reference, where just a reference to an existing object is passed.

9. What are channels in. Net remoting?

Channels represent the objects that transfer the other serialized objects from one application domain to another and from one computer to another, as well as one process to another on the same box. A channel must exist before an object can be transferred.

10. What security measures exist for. Net remoting in system. runtime. remoting?

None. Security shoshould be taken care of at the application level. cryptography and other security techniques can be applied at application or server level.

11. What is a formatter?

A formatter is an object that is responsible for encoding and serializing data into messages on one end, and deserializing and decoding messages into data on the other end.

12. Choosing between HTTP and TCP for protocols and binary and soap for formatters, what are the trade-offs?

Binary over TCP is the most effiecient, soap over HTTP is the most interoperable.

13. What's singlecall activation mode used?

If the server object is instantiated for responding to just one single request, the request shoshould be made in singlecall mode.

14. What's Singleton activation mode?

A single object is instantiated regardless of the number of clients accessing it. Lifetime of this object is determined by lifetime lease.

15. How do you define the lease of the object?

By implementing ilease interface when writing the class code.

16. Can you configure a. Net remoting object via XML file?

Yes, via machine. config and application level. config file (or web. config in ASP. NET). application-level XML settings take precedence over machine. config.

17. How can you automatically generate interface for the remotable object in. Net with Microsoft tools?

Use the soapsuds tool.
 

Please visit http://www.techinterviews.com to get more questions.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.