Student ID: Bc230217539 Solution: Code: Assignment # 01
Student ID: Bc230217539 Solution: Code: Assignment # 01
Solution:
Code
#include <stdio.h>
#include <stdlib.h>
#include <pthread.h>
#include <string.h>
pthread_exit(NULL);
}
pthread_exit(NULL);
}
int main() {
int arr[10] = {2, 4, 6, 8, 10, 12, 14, 16, 18, 20};
char str[100];
pthread_join(thread1, NULL);
pthread_join(thread2, NULL);
return 0;
}
Screenshot: