Question: Question 1 Write a program in C which creates 10 POSIX threads. These threads must individually generate arrays of 1.000 random integers between 1.000 and
Question 1 Write a program in C which creates 10 POSIX threads. These threads must individually generate arrays of 1.000 random integers between 1.000 and 9.999 (inclusive) and count how many of these numbers are prime numbers. Sample Run $ ./program1 Thread 1 - 1 primes. Thread 0 - 1 primes. Thread 3 - 1 primes. Thread 5 - 2 primes. Thread 9 - 1 primes. Thread 2 - 0 primes. Thread 6 - 1 primes. Thread 4 - 1 primes. Thread 8 - 3 primes. Thread 7 - 0 primes.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
