文件名称:3sw(pthread)
介绍说明--下载内容均来自于网络,请自行研究使用
实验要求作到以下几点:
①构造具有两个参数的子函数,子函数将首个指针参数中的各个元素进行排序,次参数传递的是收参数的元素数目;
②f2.c:设计具有俩参数的子函数,子函数将二参数值交互; ③实现主函数,主函数中创建俩线程,线程一定义一个十元素的数组,使用文件f1中定义的函数对数组排列顺序并能够使结果输出;线程2定义俩整形的变量,使用文件f2中定义的函数将二变量的值进行 交互而且要结果输出 -The experimental requirements do the following:
① structure has two parameters of sub function, sub function will be ordered by the various elements in the first pointer parameter, time parameter is to collect the number of element parameters
②f2. C: the design of sub function has two parameters, sub function parameter value interaction ③ to achieve the main function, the main function of creating two threads, thread a define an array of ten elements, use the function defined in the file f1 to array the order and be able to make the output Thread 2 the plastic of the two variables, using the file f2 defined in the function of the two variables value interaction and result output
①构造具有两个参数的子函数,子函数将首个指针参数中的各个元素进行排序,次参数传递的是收参数的元素数目;
②f2.c:设计具有俩参数的子函数,子函数将二参数值交互; ③实现主函数,主函数中创建俩线程,线程一定义一个十元素的数组,使用文件f1中定义的函数对数组排列顺序并能够使结果输出;线程2定义俩整形的变量,使用文件f2中定义的函数将二变量的值进行 交互而且要结果输出 -The experimental requirements do the following:
① structure has two parameters of sub function, sub function will be ordered by the various elements in the first pointer parameter, time parameter is to collect the number of element parameters
②f2. C: the design of sub function has two parameters, sub function parameter value interaction ③ to achieve the main function, the main function of creating two threads, thread a define an array of ten elements, use the function defined in the file f1 to array the order and be able to make the output Thread 2 the plastic of the two variables, using the file f2 defined in the function of the two variables value interaction and result output
(系统自动生成,下载前可以参看下载内容)
下载文件列表
3sw(pthread)
............\f1.c
............\f1.c~
............\f1.h
............\f1.h~
............\f1.o
............\f2.c
............\f2.c~
............\f2.h
............\f2.h~
............\f2.o
............\fg
............\Makefile
............\Makefile~
............\sw
............\swa.c
............\swa.c~
............\swa.o