Java app using TCP/IP protocol to compute prime numbers on multiple computers on LAN.
Distributed computing app which computes prime numbers in given range on multiple computers on LAN using TCP/IP protocol.
This is a client / server app.
How it works?
- We need to start server by specifying console arguments
server
andserver port
- We need to specify range in which we want to search prime numbers
- Now server is active and is waiting for clients to connect.
- We can connect to server by specifying console arguments
client
server ip
port
- When appropriate number of clients connects to server, server divides the work by all connected clients and send tasks to each client
- When client finish his task, he sends the result back to server. If client disconnects during computations, server sends his task to another not busy client
- When all client finish their work and every part is computed, server displays the result.
Project made for Codecool programming course.