#include #include #include using namespace std; using namespace boost; void foo() { cout << "Thread started." << endl; int size = 1000000; try { int* bar = new int[size]; for (int i=0;i