I have written a small program to validate 3 data files and convert them into a csv file.
-Every file is converted by a different class file
-There is a main class which instantiates all the other classes for processing files one after other
How do i make sure that the next file is processed only after the previous file is done?
The pseudocode for my program is as follows
mainExecute Class()
{
executeFile1converter();
executeFile2Converter();
executeFile3Converter();
}
If its single threaded and there is no exception/error occurred then it guarantees that behavior