7 static void *spin(void *uu)
13 int main(int argc, char **argv)
19 for(i = 0; i < n; i++) {
20 if(pthread_create(&threads[i], NULL, spin, NULL)) {
21 fprintf(stderr, "loadcpu: pthread_create: %s\n", strerror(errno));
25 pthread_join(threads[0], NULL);
31 * compile-command: "gcc -g -Wall -o loadcpu loadcpu.c -lpthread"