Program on remote procedure call on a cs architecture, JAVA Programming

Assignment Help:

This project simulates a remote procedure call on a client-server architecture.

You will create both the client and the server. The server will maintain a linked list. It must NOT use one of Java's collection classes (i.e. Vectors, ArrayList, etc), write your own linked list. Singly linked is fine.

The client will request various operations on the linked list. The communication between a client and a server is implemented through sockets. You will build both the server and the client. The server must be multithreaded. I do not specify a communication protocol, you can use your own.

The server:

1. The server will provide the following operations to the client:

  • insert an integer to the end of a linked list (take one integer parameter)
  • remove an integer from a linked list (take one integer parameter - the index into the list)
  • get the number of integers in a linked list (No parameter)
  • get the first integer in a linked list (No parameter)
  • get the last integer in a linked list (No parameter)

2. The server uses semaphores to protect the linked list

3. The server is multithreaded (Ex: can handle multiple client connections).

The client:

1.       Display a menu to users and ask users to input parameters if any

  • insert an integer to the end of a linked list
  • remove an integer from a linked list given a particular index into the list
  • get the number of integers in a linked list
  • get the first integer in a linked list
  • get the last integer in a linked list
  • terminate the client

2.       Pack user's request as a message, which is sent to the server through a socket

3.       Unpack the result and display it to the user


Related Discussions:- Program on remote procedure call on a cs architecture

Write a program to explain do while loop in java, Write a program to explai...

Write a program to explain do while loop in Java ? // This is the Hello program in Java class Hello { public static void main (String args[]) { int i = -1; do { if (

Write a javascript program which having two functions, Write a JavaScript p...

Write a JavaScript program which having two functions that are sum and mean. The web page will ask the user to enter five values to be added. After taking input it will compute

How to draw polygons in java, How to draw Polygons in java? In Java rec...

How to draw Polygons in java? In Java rectangles are defined through the position of their upper left hand corner, their height, and their width. Therefore it is implicitly sup

How dbms is better to use than flat-file database, How can you justify that...

How can you justify that a DBMS is better to use than Flat-file database? A DBMS takes care of the storage, retrieval, and management of large data sets on a Database. It give

We want the best java programmer, We want the best java programmer availabl...

We want the best java programmer available. Project Description: Java | Portlets| JSF Liferay (not essential but is preferable) Big Data and User online tools. Multilin

Explain intelligent system, What is an intelligent system? Intelligent sy...

What is an intelligent system? Intelligent systems are the programs established to perform complicated jobs in which reflect human brain and thoughts. If the algorithms are too m

Write a java windowed application, For this assignment, you will write a Ja...

For this assignment, you will write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result. Overview of the applic

PadovanString, write a program that counts the number of occurrences of the...

write a program that counts the number of occurrences of the string in the n-th Padovan string P(n).   program in java // aakash , suraj , prem sasi kumar kamaraj college

JDBC Assignment, If we have 2 tables like bankcustomer(cid,cname,addr,acc_t...

If we have 2 tables like bankcustomer(cid,cname,addr,acc_type) and customeraccount(cid,amount). How to Deposit amount into the given customer account.?

Explain the java.net package, Explain The java.net package Each package...

Explain The java.net package Each package describes a number of classes, interfaces, exceptions, and errors. For instance, the java.net package contains these, classes, interfa

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd