src/process.cpp
bool Process::operator<(Process const& a) const { 
    if (this->cpuUtilization_ < a.cpuUtilization_) {
        return false ; 
    }
    return true ;    
    }
// Overload the "less than" comparison operator for Process objects
// To compare two processes with their cpuUtilizations
Overload the "less than" comparison operator for Process objects
To compare two processes with their cpuUtilizations
Overload the " less than " comparison operator for Process objects To compare two processes with their cpuUtilizations
bool Process::operator<(Process const& a) const { 
    if (this->cpuUtilization_ < a.cpuUtilization_) {
        return false ; 
    }
    return true ;    
    }
bool Process :: operator < ( Process const & a ) const { if ( this -> cpuUtilization_ < a . cpuUtilization_ ) { return false ; } return true ; }
Overload the "less than" comparison operator for Process objects
To compare two processes with their cpuUtilizations
Overload the " less than " comparison operator for Process objects To compare two processes with their cpuUtilizations