An example program to read from multiple files in a multithreaded manner