![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
并发
浮沉_y
这个作者很懒,什么都没留下…
展开
-
Java高并发——学习记录
并行的世界 1、同步(Synchronous)和异步(Asynchronous) 同步:同步方法调用一旦开始,调用者必须等到方法调用返回后,才能继续后续的行为。 异步:像是一个消息的传递,一旦开始,方法就立即返回,调用者可以继续后续的操作。 2、并发(Concurrency)和并行(Parallelism) 并发和并行都可以表示两个或者多个任务一起执行,但是并发偏重多个任务交替执行...原创 2019-04-14 21:44:57 · 95 阅读 · 0 评论 -
高斯消元并发(未完成
想法:想在找到最大元后,开启并发多个线程(机器)一起消去下面的行(变成上三角行列式) 结果运行调用,从main那里调用,并不是局部调用、、、 残缺的代码: #include "stdio.h" #include "math.h" #include "mpi.h" #include "stdlib.h" float *gauss(float *arr, int row, int col);...原创 2019-08-23 16:14:54 · 216 阅读 · 0 评论 -
C语言使用MPI实现并行操作(MPI入门)
C语言使用MPI: #include "mpi.h" #include "stdio.h" #include "math.h" #include "unistd.h" #define n 10 void printArr(int *arr){ for(int i = 0; i < n; i++){ for(int j = 0; j < n; j++){ printf...原创 2019-08-30 14:12:36 · 6857 阅读 · 1 评论