Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

NES416 - Network Programming Programming Assignment 5 Objectives: To implement applications utilizing Threads. Description: In this assignment, you will write a TCP client and a

image text in transcribed

NES416 - Network Programming Programming Assignment 5 Objectives: To implement applications utilizing Threads. Description: In this assignment, you will write a TCP client and a TCP concurrent server, applications utilizing Threads. Server Requirements: The server provides a high-performance computing facility that performs a single dimensional array operation on behalf of clients. Precisely, the server performs the operation of reverse on array-based arguments passed to the server by clients, and the server returns the result to the calling client consequently. Reverse of an array X = [xl, x2, ..., xm), is [xm ....... x2, xl] The server should print the request# for each request from the client. The server can serve up to a maximum of 4 clients concurrently. To constrain the server to serve only up to 4 concurrent clients, you may want to use Mutexes and Condition Variables Client Requirements: A client program defines an array variable and initializes its values from the standard input by interacting with the user. The client then communicates with the server to perform reversing on the defined array variable. The client outputs the defined array, and the result(reverse) on the standard output, The client can send multiple requests (multiple operations) and receive their results on a single TCP connection with the server. Hints: You are not allowed to use libraries or tools developed by any third party. Put your source files only (no binaries) along with a plain-text file explaining how to compile and run your code in a single compressed file. Submit your compressed file using the link of the E-learning site. Zero grade will be assigned for all programs that will not be compiled or run correctly. Partial credit is given only for working code that does not implement all the requirements. One submission is needed per group. Comment your code as needed. NES416 - Network Programming Programming Assignment 5 Objectives: To implement applications utilizing Threads. Description: In this assignment, you will write a TCP client and a TCP concurrent server, applications utilizing Threads. Server Requirements: The server provides a high-performance computing facility that performs a single dimensional array operation on behalf of clients. Precisely, the server performs the operation of reverse on array-based arguments passed to the server by clients, and the server returns the result to the calling client consequently. Reverse of an array X = [xl, x2, ..., xm), is [xm ....... x2, xl] The server should print the request# for each request from the client. The server can serve up to a maximum of 4 clients concurrently. To constrain the server to serve only up to 4 concurrent clients, you may want to use Mutexes and Condition Variables Client Requirements: A client program defines an array variable and initializes its values from the standard input by interacting with the user. The client then communicates with the server to perform reversing on the defined array variable. The client outputs the defined array, and the result(reverse) on the standard output, The client can send multiple requests (multiple operations) and receive their results on a single TCP connection with the server. Hints: You are not allowed to use libraries or tools developed by any third party. Put your source files only (no binaries) along with a plain-text file explaining how to compile and run your code in a single compressed file. Submit your compressed file using the link of the E-learning site. Zero grade will be assigned for all programs that will not be compiled or run correctly. Partial credit is given only for working code that does not implement all the requirements. One submission is needed per group. Comment your code as needed

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions