#include #include #include #include const int N_qsort = 10000; const int N_int = 10000; const int N_float = 20000; const int N_pi = 50000000; int thread_count = 0; void int_comp(void); void float_comp(void); void pi_comp(void); void to_qsort(int arr[],int low,int high); void qsort_comp(void); void thread(void); void thread_int(void); void thread_float(void); void thread_pi(void); void thread_qsort(void); int main(int argc,char** argv){ int count,i,result,type; count = atoi(argv[1]); type = atoi(argv[2]); if(argc < 3){ printf("ERROR: Parameter error[%d]",argc); } pthread_t tid; for(i=0;i=high) return; int first=low; int last=high; int key=arr[first]; while(first=key) --last; arr[first]=arr[last]; while(first0;i--) arr[N_qsort-1]=i; to_qsort(arr,0,N_qsort-1); }