// $Id: main.c 117 2009-05-16 14:42:39Z rosiere $ //=====[ main ]================================================================= /* * All thread execute this routine * Initialize the thread and attribute a Workload at each thread */ #include #include #include #include int main() { FILE * file = fopen("Test_x004.txt","a"); if (file == NULL) exit (1); fprintf(file,"Hello of cpu %d !!!\n",getpid()); if (fclose (file) != 0) exit (2); exit (0); while (1); }