uses multiple threads to read lines of a text file