OS report

1) Could your program pass all the provided 3 test cases? If not, please give the possible reasons.
2) How you find all the text files under a directory, i.e., the implementation of traverseDir() function. (Hint: You may describe the system calls, the data structures, the header files, and any other functions used in your code.) (4 points)
3) How you achieve the synchronization between two processes using the semaphore. (4 points)
4) How you handle the case that the total size of a text file exceeds the buffer size. (3 points)
5) Please describe your design details in implementing the program for this problem. (3 points)
Describe the other design details here.
You can directly use words or any other methods such as flow diagram and pseudo-code.
1) Could your program pass all the provided 3 test cases? If not, please give the possible reasons.
2) How you parallelize the word counting operation with multiple threads in the child process. (3 points)
3) Please describe your design details in implementing the program for this problem. (3 points)
Describe the other design details here.
You can directly use words or any other methods such as flow diagram and pseudo-code.
Programming Help