Hello,
I have the following assignment:
"Write a
Java program that reads a csv file, parses the data, distributes the data to multiple threads, where each line of data in the file is written to a database row. The program should not exit until the entire file is processed and written to the database. Each data set should be assigned to a specific
thread, and only the owning thread should process the data. Metrics should be kept in terms of success/failures.
Failures should be placed in a cache and retried once and only once by a thread other than the thread that made the original attempt."
I'm confused as to what the last sentence means. Why would a thread fail? Could anyone clear this up for me? Thanks