#include #include #include #include #include #include #ifndef NUM_THREADS #define NUM_THREADS 3 #endif #ifndef NUM_ITER #define NUM_ITER 10000 #endif #ifndef SIZE #define SIZE 16384 #endif __thread void* buf; static void* perform_work( void* argument ) { int passed_in_value; passed_in_value = *( ( int* )argument ); printf( "Hello World! It's me, thread %d with argument %d!\n", getpid(), passed_in_value ); /* optionally: insert more useful stuff here */ for(int i=0; i