#include"wrapper.h"
#include<stdio.h>
void main() {
struct timeval start, end;
pid_t pid[100];
pthread_t tid[100];
int i;
gettimeofday(&start, NULL);
for (i = 0; i < 100; i++) {
编写程序测量 pthread_create、fork 两个函数的运行时间,并进行实测比较
最新推荐文章于 2023-07-18 16:34:06 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)