'How to write java code for reading large CSV file using multithreading?

I have about 10000 lines csv file and have to create 5 threads and each thread does its operation. how can I divide 10000 lines into 5 thread? and then have to join all the 5 threads. the csv file is about employee details so i have to get the values on the basis of the department,



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source