Why not fork before opening the file, and have each subprocess iterate over the file and process it? Or just write two programs?
Of course, if there even more non-obvious requirements, list them first ;-)
In reply to Re^5: while reading a file, transfer the same data to two different processes.
by JavaFan
in thread while reading a file, transfer the same data to two different processes.
by avanta
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |