Question: Write a main() program that searches the first five million integers for prime numbers by using two threads. A third thread is created to enable

Write a main() program that searches the first five million integers for prime numbers by using two threads. A third thread is created to enable the user to check the search status of the two prime search threads while they are running. When the prime number search is completed the main function will combine the individual files "primes 1" and "primcs2" into a single output file "primes". Implement tcst_prime(), primc_scarch(), and mini_shcll() as library functions in firstinitiallastnamc_primc.c/h and main() in firstinitiallastname_lab3.c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
