sleepers.c | 15 static int burn = 0; // after each sleep, will burn cpu in a tight 'burn' loop variable 41 for (i = 0; i < burn; i++) loopnr++; 65 int burn; member in struct:spec 77 fprintf(stderr, "%s ready to sleep and/or burn\n", s->name); 91 if (burn > 0 && s->burn) 95 fprintf(stderr, "%s finished to sleep and/or burn\n", s->name); 122 // threads wanting to burn cpu [all...] |