Freshers Aptitude technical questions
Freshers Job Alert
Bookmark and Share

  Marshalling

The process of packaging and unpackaging interface method parameters across thread or process boundaries so that a remote procedure call can take place.

A client and an in-process component share the same address space, so calls to the methods of an in-process component can use the client's stack to pass arguments. This is not possible for an out-of-process component; instead, the method arguments must be moved across the boundary between the two processes. This is called marshaling.

The COM technique of marshaling allows interfaces exposed by an object in one process to be used in another process. In marshaling, COM provides code (or uses code provided by the interface implementor) both to pack a method's parameters into a format that can be moved across processes (as well as, across the wire to processes running on other machines) and to unpack those parameters at the other end. Likewise, COM must perform these same steps on the return from the call.

Note   Marshaling is typically not necessary when an interface provided by an object is being used in the same process as the object. However, marshaling may be needed between threads.