Question: Can you write a 3 C program to use in code blocks in windows to read fromthe file enwiks. txt and print the top 1

Can you write a 3 C program to use in code blocks in windows to read fromthe file enwiks. txt and print the top 10 most frequent words without using hash table using three approaches1. Naive approach, a program that does not use any child processes or threads.2.. Multiprocessing approach: a program that uses multiple child processes running in parallel. Try different numbers of child processes and compare the outcome: 2,4,6,8 children .3. Multithreading approach: a program that uses multiple joinable threads running in parallel. Try different numbers of threads and compare the outcome: 2,4,6,8 threads.Note: You must work on a computer that has at least 4 cores. If you use a virtual machine, make sure that at least 4 cores are allocated to the virtual machine.How you achieved the multiprocessing and multithreading requirements, i.e. The API and functions that you used.An analysis according to Amdahl's law. What percentage is the serial part of your code? What is the maximum speedup according to the available number of cores? What is the optimal number of child processes or threads ?A table that compares the performance of the 3 approaches Comment on the differences in performance,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!