Read many files in parallel with a specific sample rate
Open 10 files.
Read 1 record from each file (or 10, the question is not clear).
Use these records.
Wait until the current 5 second interval elapses.
Go to 2.
I have 10 CSV files with million records. I want to read the 10 files in parallel, but with a specific rate (10 records per 5 sec). What is the efficient way to do so ?. I am using Windows in case someone will suggest to use OS scheduler