#include #include #include /* For the thread function: * It needs to take a void* parameter * This can be set with the last argument to pthread_create * It should return a void* */ void* waste_time(void*){ double n = 1.00; while(1) n = sin(n); return 0; } int threads = 60; int main(){ while(threads){ pthread_t thread_handle; pthread_create(&thread_handle, 0, waste_time, 0); threads--; } waste_time(0); }