Some examples of your multi-line inputs would help.
In reply to Re: Multi-CPU when reading STDIN and small tasks by BrowserUk in thread Multi-CPU when reading STDIN and small tasks by bspencer