Skip to main content
deleted 14 characters in body
Source Link

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

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;        
};
std::vector<Process> processes;

or put the members waitingTime turnAroundTime turnAroundTime in Data directly

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, endTime;        
};
std::vector<Process> processes;

or put the members waitingTime turnAroundTime endTime in Data directly

Source Link

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;        
};
std::vector<Process> processes;

or put the members waitingTime turnAroundTime turnAroundTime in Data directly