Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a program with a concurrent server that can handle multiple requests to find the sum of the ones complements of two decimal numbers and

image text in transcribed

Create a program with a concurrent server that can handle multiple requests to find the sum of the ones complements of two decimal numbers and write the result in the form of a binary number. The clients should be able to read pairs of decimal integers from a text file and print what is received from the server on the terminal. You should use multiprocessing, not multithreading, on the server. We will do a multithreaded server later. Write the program in C or Python in Linux, not Windows. Due November 12. At least two client programs should have a text file with lines of input containing two decimal numbers per line. The input file should be big enough to test the concurrent server program that you write. The server should print on the monitor the result in each case in binary format, not in decimal format. Name the input file "decimal.in." The input files for the two processes should have distinct decimal numbers. Create a child process, not a thread, to handle each request at the server side. The server should not be a daemon. For this program you can use either C or Python. You are to use TCP/IP and Linux Submit a Collaboration Statement along with your source code for the client and for the server and the decimal.in file that you used. Include also a ReadMe file to explain to the user how to compile and run your program with any compile options that you are using. Use a makefile so that you can run the two or more clients simultaneously. Thus you may have as many as 5 files to zip together with 7 zip. Make sure you can unzip them before submitting the zip file

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Robb,Carlos Coronel

5th Edition

061906269X, 9780619062699

More Books

Students also viewed these Databases questions