#include #include using namespace std ; class Functor1 { public: void operator()(int delay) { cout << "Inside the start of Functor1 method." << endl ; this_thread::sleep_for(chrono::milliseconds(delay)); cout << "Inside the end of Functor1 method." << endl ; } }; int main() { //TO DO Create 2 threads using the Functor1 class //. Pass some delay. Observer the output. Functor1 Functor1Object ; thread t1( Functor1Object, 1000 ) ; thread t2( Functor1Object, 1000 ) ; //TO DO Add the join statements so that the //main waits for the threads to finish t1.join() ; t2.join() ; cout << "main thread\n"; return 0; }