This is a concurrent computing server based on process pool, which is used to solve any order inverse matrix for clients in parallel.
Compile three projects separately.
cd Client
g++ -o client client.cpp
cd ProcessPoolServer
g++ -o process_pool_server process_pool_server.cpp
cd ComputingService/build
cmake ..
make
Copy the binary "client" to the client machine.
Copy the binary "process_pool_server" and "ComputingSrv" to the client machine.
Make sure that the location of "ComputingSrv" is right. Otherwise, change the file_name
in process_pool_server.cpp and then compile again.
Then you must make sure that server and client can "ping":
Client machine:
ping serverIP
If it can "ping", then do the following steps:
- In server machine:
./process_pool_server IP Port
- In client machine:
./client serverIP serverPort
waitting...