At first glance, in Scheduler
, I would replace
std::vector<Data> data;
std::vector<unsigned> waitingTime;
std::vector<unsigned> turnAroundTime;
std::vector<unsigned> endTime;
by
struct Process {
Data data;
unsigned waitingTime, turnAroundTime, turnAroundTime;endTime;
};
std::vector<Process> processes;
or put the members waitingTime
turnAroundTime
turnAroundTimeendTime
in Data
directly