![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
杂项研究
y33988979
这个作者很懒,什么都没留下…
展开
-
[多核并行计算]进程间通信-性能研究
首先介绍下多核并行计算的场景,及测试方法:(1)并行计算运用在特定大型服务器之上,其硬件水平很高,可能有多几百到上千个cpu。(2)这些cpu分成了2类,一类是控制cpu,作为主控,用于发起计算,与其他CPU交互,发起计算通知,分析并统计结果等作用;第二类是计算cpu(占大多数)。系统中绝大多数cpu属于计算cpu,因为整个系统就是为了高性能计算。由于计算量大,所以需要很多很多的cp...原创 2018-09-05 21:30:00 · 1057 阅读 · 0 评论 -
[多核并行计算]进程间通信(二)共享内存
先把代码贴上,后面在做讲解。。#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <fcntl.h> #include <math.h> #include <sys/time.h> #include <sys/stat.h&g原创 2018-09-14 16:47:02 · 1669 阅读 · 1 评论 -
[多核并行计算]进程间通信--管理程序
#include <stdio.h>#include <stdlib.h>#include <unistd.h>#include <sys/types.h>#include <sys/stat.h>#include <sys/wait.h>#define SHARE_RFIFO_PATH "/home/tmp/...原创 2018-09-14 17:00:13 · 322 阅读 · 0 评论 -
[多核并行计算]进程间通信(三)套接字
socket套接字不仅可以在不同主机间通信,如TCP/UDP等网络方式通信。也可以再本机为不同进程间通信提供服务。int socket(int domain, int type, int protocol);socket函数接口中有3个参数,其中第一个domain参数决定了通信域,如果是本机内通信传入AF_UNIX, AF_LOCAL,如果是跨主机使用ip进行通信则传入AF_INET等。...原创 2018-09-30 15:46:39 · 565 阅读 · 0 评论 -
vim快捷键及配色修改
下载color插件https://www.vim.org/scripts/script.php?script_id=3412设置vimrc配置文件cat ~/.vimrc set nusyntax enablesyntax onset background=darknmap fc :cs find c <C-R>=expand("<cword>...原创 2019-01-07 14:30:56 · 513 阅读 · 0 评论