Hi, i have another hw and i need to write a program that follows:
Consider a C program containing 3 processes (parent process + 2 child processes).
For 5 seconds, the parent process reads information from the file 'data.txt' and sends it through a pipe to the first child process.
The first child process receives the data sent by the parent process through the pipe and sends all lowercase letters through another pipe to the second child process. In addition, every second it will send the SIGUSR2 signal to the second child process.
The second child process creates a file 'statistica.txt' in which it writes the total number of lowercase characters as well as the distribution of lowercase characters (character and number of occurrences) after each SIGUSR2 signal.
Finally, the process (second child process) will send the number of distinct characters through another pipe to the parent process.
The parent process displays the result received from the second child process in the terminal.
Im a bit lost i did not understand signals and pipes that much. thank uu!!