answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

Earn +20 pts
Q: What do clients and server stubs do for remote procedure call?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is a computer stub in operating system?

A small software routine placed into a program that provides a common function. Stubs are used for different reasons. For example, a stub might be installed in a client computer, and a counterpart installed on a server, where both are required to resolve some protocol. For example in a remote procedure call (RPC) Stubs are compiled and linked with the client application, instead of containing the actual code that implements the remote procedure. The stub contains just enough code to allow it to be compiled and linked with the rest of a program. Stubs are often used as placeholders for a routine.


What is RPC and RMI Give appropriates examples?

Remote Procedure Call (RPC) is a powerful technique for constructing distributed client-server based applications. RPC is a client /server infrastructure that increases the interoperability, portability and flexibility of an application by allowing the application to be distributed over multiple heterogeneous platforms. An RPC is analogous to function call. = How RPC Works = An RPC is analogous to a function call. Like a function call, when an RPC is made, the calling arguments are passed to the remote procedure and the caller waits for a response to be returned from the remote procedure. Figure 32.1 shows the flow of activity that takes place during an RPC call between two networked systems. The client makes a procedure call that sends a request to the server and waits. The thread is blocked from processing until either a reply is received, or it times out. When the request arrives, the server calls a dispatch routine that performs the requested service, and sends the reply to the client. After the RPC call is completed, the client program continues. RPC specifically supports network applications. Fig. 32.1 Remote Procedure Calling Mechanism A remote procedure is uniquely identified by the triple: (program number, version number, procedure number) The program number identifies a group of related remote procedures, each of which has a unique procedure number. A program may consist of one or more versions. Each version consists of a collection of procedures which are available to be called remotely. Version numbers enable multiple versions of an RPC protocol to be available simultaneously. Each version contains a a number of procedures that can be called remotely. Each procedure has a procedure number. = RPC Application Development = Consider an example: A client/server lookup in a personal database on a remote machine. Assuming that we cannot access the database from the local machine (via NFS). We use UNIX to run a remote shell and execute the command this way. There are some problems with this method: * the command may be slow to execute. * You require an login account on the remote machine. The RPC alternative is to * establish an server on the remote machine that can repond to queries. * Retrieve information by calling a query which will be quicker than previous approach. To develop an RPC application the following steps are needed: * Specify the protocol for client server communication * Develop the client program * Develop the server program The programs will be compiled seperately. The communication protocol is achieved by generated stubs and these stubs and rpc (and other libraries) will need to be linked in. Reomote Procedure Calling Mechanism A remote procedure is uniquely identified by the triple: ( program number, version number, procedure number). ADVANTAGES: Many distributed systems use Remote Procedure Calls(RPCs) as their main communication mechanism. RMI is a Remote method invocation- RMI (Remote Method Invocation) is a way that a programmer, using the Java programming language and development environment, can write object-oriented programming in which objects on different computers can interact in a distributed network. RMI is the Java version of what is generally known as a remote procedure call (RPC), but with the ability to pass one or more objects along with the request. The object can include information that will change the service that is performed in the remote computer. Sun Microsystems, the inventors of Java, calls this "moving behavior." For example, when a user at a remote computer fills out an expense account, the Java program interacting with the user could communicate, using RMI, with a Java program in another computer that always had the latest policy about expense reporting. In reply, that program would send back an object and associated method information that would enable the remote computer program to screen the user's expense account data in a way that was consistent with the latest policy. The user and the company both would save time by catching mistakes early. Whenever the company policy changed, it would require a change to a program in only one computer. Sun calls its object parameter-passing mechanism object serialization. An RMI request is a request to invoke the method of a remote object. The request has the same syntax as a request to invoke an object method in the same (local) computer. In general, RMI is designed to preserve the object model and its advantages across a network. RMI is implemented as three layers: * A stub program in the client side of the client/server relationship, and a corresponding skeleton at the server end. The stub appears to the calling program to be the program being called for a service. (Sun uses the term proxy as a synonym for stub.) * A Remote Reference Layer that can behave differently depending on the parameters passed by the calling program. For example, this layer can determine whether the request is to call a single remote service or multiple remote programs as in a multicast. * A Transport Connection Layer, which sets up and manages the request. A single request travels down through the layers on one computer and up through the layers at the other end.


What are the difference and similarities between RMI and RPC?

RMI or Remote Method Invokation is very similar to RPC or Remote Proceedure call in that the client both send proxy objects (or stubs) to the server however the subtle difference is that client side RPC invokes FUNCTIONS through the proxy function and RMI invokes METHODS through the proxy function. RMI is considered slightly superior as it is an object-oriented version of RPC.


How do you print out your checks stubs?

how do i print my check stubs


How can you print your pay stubs from loblaws?

How do I print my Loblaws pay stubs


How do you print your pay stubs from prologistix?

How do you print your lay stubs from prologistix


How do you print your employee checks stubs from winndixiecom?

ilo pay stubs


What is the website for Kroger pay check stubs?

print employee pay stubs


How do you get your pay stubs from outback steakhouse?

If you go inside your local job. Ask them how And then you will have your check stubs.


Where can one find information on stubs?

Stubs are articles that contain valuable information, but not enough sentences to complete an entire article. It is usually an editor who decides which articles are 'stubs' and what should be done with them. Often the stubs are blended into another article or discarded completely.


A man collects cigarette stubs and makes one full cigarette with every 8 stubs If he gets 64 stubs how many full cigarettes can he smoke?

8+1


Can you help me print out takesy's pay stubs?

You can get help printing Takesy's pay stubs by accessing the program where the pay stubs and pay checks are created. If you do not have access to the program, you will need to speak with someone who does have access. Then, use the help file to get an idea of how the pay stubs are printed.