in reply to Re^8: how to split huge file reading into multiple threads
in thread how to split huge file reading into multiple threads
The concept of each thread writing to it's own output file and merging them after script completion didn't appear a good solution to him, or else he wouldn't have brought the issue up.
Consider a situation where the threads process millions of records, but only need to report back a few matches. This method will allow the main thread to collect those matches, and operate on them in realtime. Otherwise the main thread would have to tail the thread's output files.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^10: how to split huge file reading into multiple threads
by BrowserUk (Patriarch) on Sep 02, 2011 at 10:15 UTC | |
by zentara (Cardinal) on Sep 02, 2011 at 15:24 UTC | |
by BrowserUk (Patriarch) on Sep 02, 2011 at 16:32 UTC | |
by zentara (Cardinal) on Sep 02, 2011 at 16:40 UTC |