Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implementation: A Framework for Distributed Computing of Matrix Multiplication Using One Client and Multiple Servers in Python Programming Language. You will extend your program into

Implementation: A Framework for Distributed Computing of Matrix Multiplication Using One Client and Multiple Servers in Python Programming Language. You will extend your program into having multiple servers and one client:

  • A client divides a big application into several small problems which are processed by multiple servers.

  • All servers compute their respective solutions and send the result to the client.

  • The client assembles the result and outputs the final result to the user.

  • The client acts as a supervisor.

  • The number of available servers and their fully qualified Internet names can

    be saved in a file (some server configuration).

    Client (As a coordinator)

  • It reads the server configuration file to get information about the available

    servers.

  • It creates an array of sockets and input/output data streams with all servers.

  • It passes control to a main function to invoke the work to be done.

Server (Worker)

  • It creates a server socket on an unused port number;

  • It waits for connection on that port. Once it gets a request from a client, it

    accepts that connection.

  • It creates an input/output data stream for the socket. This establishes the

    basis for communication between the server socket and the client.

  • It then passes control to the server body, which contains the code specific to

    the application being executed either in parallel or in distributed manner.

  • The main server can accept the connection from the client, create a socket

    and invoke the server body to handle that client.

  • It goes back and waits for another client.

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

More Books

Students also viewed these Databases questions

Question

define what is meant by the term human resource management

Answered: 1 week ago