in reply to Re^2: while reading a file, transfer the same data to two different processes.
in thread while reading a file, transfer the same data to two different processes.
What you could do is for each line, fork twice. First child calls function1, second child calls function2. Both children exit afterwards. Parent waits till children are done before reading the next batch. Then the process will not be stopped if either function crashes on a batch.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: while reading a file, transfer the same data to two different processes.
by avanta (Beadle) on May 20, 2010 at 16:04 UTC | |
by JavaFan (Canon) on May 20, 2010 at 16:21 UTC |