openmp c 并行代码,随机生成n个整数,运用4线程或者2线程进行冒泡排序;然后与串行冒泡算法进行时间比较
// ConsoleApplication2.cpp : Defines the entry point for the console application.
//
#include<ctime>
#include "stdafx.h"
#include <iostream>
#include<omp.h>
#include<time.h>
# ...
原创
2019-10-16 16:51:20 ·
1101 阅读 ·
0 评论