This system does have a starvation problem. The parent will block on writing to the slowest child process and all the other children will wait on reading their next line. If this is a problem, you can try using non-blocking IO in the parent. The parent can then select an available child to write the line too.
In reply to Re: Process file simultaneously after forking
by iburrell
in thread Process file simultaneously after forking
by bheckel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |