#include #include #define NTHREADS 40 void *dodump(void *threadid) { char *ptr = 0x1212121; printf("DUmp... %s \n", ptr); } void *dowork(void *threadid) { printf("\nThread %d started \n", (int )threadid); while(1); } int main(int argc, char *argv[]) { pthread_t threads[NTHREADS]; int rc; long t; for(t=0; t