Professional Documents
Culture Documents
Weekly UPDATE
Weekly UPDATE
h>
#include <stdlib.h>
#include <pthread.h>
#include <stdint.h>
#define NUM_THREADS 5
long tid;
tid = (long)threadid;
pthread_exit(NULL);
int main () {
printf("Considering 5 threads\n");
pthread_t threads[NUM_THREADS];
int rc;
int i;
if (rc) {
exit(-1);
pthread_exit(NULL);