Question: Implement a C program in which the main program opens a file and enables the user to input a word to be used searching for
Implement a C program in which the main program opens a file and enables the user to input a word to be used searching for it in that file. Then, the main program creates two secondary threads as depicted in Figure 1. Each of these threads does the following task: - Secondary Thread A reads the words in the file from the beginning of the file. - Secondary Thread B reads the words in the file from the end of the file. When the file cursor in thread A is greater than the file cursor in thead B, the two threads stop execution and return to the main thread
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
