Process Forks are spoken by 4 child processes. exec () is used to replace code for children. Children are initialized and must wait until the parent creates all of 4 of them.
The parent then sends sigusr1 to each child process to begin processing. A parent waits for all children to complete the process. When the child finishes its work, it sends sigusr2 to the parent element. When the parent receives all sigusr2 signals, it continues execution, merging the calculations of the child processes.
This is an exercise at the university, and in the class it was indicated that process A (parent) will lose some signals, so we were told that only the percentage signal of the children’s signals that would be received successfully is required.
I would like to reach 100%. Otherwise, is it a pause (), and the loop will work?
source
share