/**************************************************************** **** **** This file belongs with the course **** Introduction to Scientific Programming in C++/Fortran2003 **** copyright 2016-2023 Victor Eijkhout eijkhout@tacc.utexas.edu **** **** hello.cxx : hello world with threads **** ****************************************************************/ #include using std::cout; #include #include using std::vector; #include void hello_n( int n ) { cout << "Hello " << n << '\n'; } #ifndef NTHREADS #define NTHREADS 5 #endif int main() { using myclock = std::chrono::steady_clock ; cout << "AllTogether\n"; { //codesnippet threadsmess vector< std::thread > threads; for ( int i=0; i threads; for ( int i=0; i