#include #include using namespace std; // Work function void do_work(int n) { cout << "Thread using function pointer " << n << endl; } int main() { int i; const int n_threads = 5 ; cout << " Using an array of threads " << endl; thread t_array[n_threads]; for (i=0;i