I’m running RHEL 5.1 and use gcc. How I tell cmake to add -pthread to compilation and linking? 4 Answers 4
  • May 23, 2022
  • 0 Comments
I picked up the following demo off the web from https://computing.llnl.gov/tutorials/pthreads/ #include <pthread.h> #include <stdio.h> #define NUM_THREADS 5 void *PrintHello(void *threadid) { long tid; tid = (long)threadid; printf("Hello World!...
  • May 3, 2022
  • 0 Comments