摘要: 学习资料来源:花花酱 https://www.bilibili.com/video/BV1j54y1B7oD stress和top 安装 sudo apt install stress 我虚拟机只分配了2个核,故使用2个核实验 stress -c 2 在另一个终端上使用 top 查看性能 ps 虽然 阅读全文
posted @ 2020-06-10 23:39 caishunzhe 阅读(134) 评论(0) 推荐(0) 编辑
摘要: 如何使用c库printf 阅读全文
posted @ 2020-06-09 20:09 caishunzhe 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 1.安装相应软件 2.创建与Build项目 创建项目 下载与调试— ST-Link 阅读全文
posted @ 2020-06-09 20:04 caishunzhe 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 参考 https://blog.csdn.net/yutianzuijin/article/details/8489555 https://blog.csdn.net/qq_34594236/article/details/79674204 加速比=优化前系统耗时/优化后系统耗时 阿姆达尔定律 G. 阅读全文
posted @ 2020-06-06 19:33 caishunzhe 阅读(2580) 评论(1) 推荐(1) 编辑
摘要: 主要内容 按键模块 实例代码 /** author:caishunzhe **/ int Led=13; int buttonpin=3; int val; void setup() { pinMode(Led,OUTPUT); pinMode(buttonpin,INPUT); } void lo 阅读全文
posted @ 2020-06-06 09:43 caishunzhe 阅读(277) 评论(0) 推荐(1) 编辑
摘要: 转载自:https://blog.csdn.net/silent56_th/article/details/80419314 翻译自:https://stackoverflow.com/questions/5298739/mpi-global-execution-time 使用MPI_Barrier 阅读全文
posted @ 2020-06-05 16:52 caishunzhe 阅读(863) 评论(0) 推荐(0) 编辑
摘要: 回顾 我们使用的平台: Arduino 入门实验1 眨眼睛 /* Blink Turns an LED on for one second, then off for one second, repeatedly. Most Arduinos have an on-board LED you can 阅读全文
posted @ 2020-05-30 10:30 caishunzhe 阅读(395) 评论(0) 推荐(0) 编辑
摘要: MPI的英文全称为message passing interface,中文名为消息传递接口,他不是一种新的语言,而是一个可以被C,C++,Fortran程序调用的库。 预备知识 1.编译与执行 使用类似此形式进行编译 mpicc -g -Wall -o mpi_hello mpi_hello.c 进 阅读全文
posted @ 2020-05-26 12:07 caishunzhe 阅读(591) 评论(0) 推荐(2) 编辑
摘要: 六、Linux 操作系统安全登陆设计 自己编写PAM 模块并编译成动态链接库so 文件,将其添加进/etc/pam.d/login 文件中实现命令行安全登陆设计,将其添加进/etc/pam.d/lightdm 文件中实现图形界面的安全登陆。安全登陆的密码根据时间戳的复杂组合,使登录密码每十秒更改一次 阅读全文
posted @ 2020-05-25 22:54 caishunzhe 阅读(1294) 评论(0) 推荐(2) 编辑
摘要: 有两个重要的寄存器负责处理堆栈:基址指针(EBP)和栈指针(ESP),EBP指向当前进程的当前栈帧的底部,ESP则总是指向栈顶 当调用函数的时候,会导致程序流跳转。在汇编代码调用函数时,将发生以下三件事: (1)调用函数首先按照逆序将函数压入栈中,从而对函数调用进行设置 (2)接下来,将扩展的指令指 阅读全文
posted @ 2020-05-25 17:23 caishunzhe 阅读(646) 评论(0) 推荐(1) 编辑