in reply to Re^4: 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.
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 ;-)
|
|---|