Refactor task 7 to allow the user to specify multiple input files. Parse each file and print either the word count or the line count as specified by the user.
Processing of each file should be done in a separate thread. Do not print the output from individual threads, because the output from different threads may overlap, making it difficult for the user to read. Instead each thread should give its output to the main thread as an object and the main thread should print it after all threads have finished processing their files.
Be sure to print the debug log to the console as your program executes.
How will you do test driven development for multi-threaded code? Are there any standard paradigms?
Describe what you did, any problems that you may have faced and how you overcame them, in a blog post.
Leave a comment here after completing this task.