ICode9

精准搜索请尝试: 精确搜索
首页 > 系统相关> 文章详细

一个基于进程池的Linux高性能并行计算服务器项目

2022-03-02 22:00:51  阅读:223  来源: 互联网

标签:process server machine 并行计算 client Linux 服务器 cd pool


最近闲来无事,C++做了个微型基于进程池的计算服务器,纯socket编程。

项目地址

https://github.com/ZYunfeii/MyParallelComputingServer

项目思维导图

可以看看这个技术框架,具体功能说简单点就是远程计算逆矩阵,但是项目重点不在这个怎么求(事实上是拿Matlab生成的),重点在Linux Socket编程和多进程上。
在这里插入图片描述

使用

Basic Info

This is a concurrent computing server based on process pool, which is used to solve any order inverse matrix for clients in parallel.

Compile

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

Use

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

标签:process,server,machine,并行计算,client,Linux,服务器,cd,pool
来源: https://blog.csdn.net/weixin_43145941/article/details/123241267

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有