#include "zthread.h" #include #include #include #include #include #include "timing.h" void fun2(void * arg) { time_t t0, t1; int i; char *strg; strg = (char *)arg; t0 = time(NULL); printf("**** Entry to fun2 (arg= %s) ***** \n", strg); int imax = atoi(strg); for(i=0; i>> Creating Thread Z1 and Z2 " << endl; ZThread zt1; zt1.setAction(fun1, arg[1]); ZThread zt2; zt2.setAction(fun2, arg[2]); cout << ">>> Starting Thread Z1 and Z2 " << endl; zt1.start(); zt2.start(); PrtTim("BeginOfCount2 "); for(kk=0; kk>> Joining Thread Z1 and Z2 " << endl; zt1.join(); zt2.join(); cout << ">>> Thread Z1 and Z2 Finished " << endl; return(0); }