Create an int array of size 100. Then create 5 threads which can generate random int number for that array make sure threads are synchronized. After that create 5 different threads which will take 20 elements in sequence from that array and process them if a number is prime then raise and exception and replace that prime number with non-prime number.
Answers
Answered by
2
Answer:
Create an int array of size 100. Then create 5 threads which can generate random int number for that array make sure threads are synchronized. After that create 5 different threads which will take 20 elements in sequence from that array and process them if a number is prime then raise and exception and replace that prime number with non-prime number
Explanation:
Hopes it helps you
Similar questions
Math,
1 month ago
Math,
1 month ago
Social Sciences,
1 month ago
Social Sciences,
2 months ago
Geography,
2 months ago
Math,
10 months ago
Math,
10 months ago