Please write a C program This program will focus on performance…
Question Answered step-by-step Please write a C program This program will focus on performance… Please write a C programThis program will focus on performance using pthreads.The program will take 2 command line arguments like:./program file1 file2. (argv[1], argv[2] Respectively)Next, it will create 2 pthreads one to read file1 and one to read file2.Each thread must count the number of occurrences of the letter ‘c’ in each file.Next, in main the program will wait until the threads are terminated.Finally, it will print the results for the number of occurrences of the letter ‘c’ of each file, that we previously got using the pthreads. thank you Engineering & Technology Computer Science Share QuestionEmailCopy link Comments (0)


