main:
fork(child1);
fork(child2);
# endless loop until signal caught from
# shell (child1):
loop(read from child1) {
react
}
# endless loop until signal caught from
# shell (child2):
loop(read from child2) {
react
}
main END:
####
main:
fork(child1);
fork(child2);
# endless loop until signal caught from
# shell (child1):
loop(read from child1) {
react
# endless loop until signal caught from
# shell (child2):
loop(read from child2) {
react
}
}
main END:
####
main:
fork(child1);
fork(child2);
# endless loop until signal caught from
# shell (child1):
loop(true) {
check child1 # call sub reacting from input;
check child2 # call sub reacting from input;
} # loop until a signal is caught.
END main: