Example.cpp
------------------------------------
#include <boost/thread/thread.hpp>
#include <stdio.h>


void ThreadOutput()
{
printf(
"hello world");
}

int main()
{
  boost::thread thrd1(ThreadOutput);
  boost::thread thrd2(ThreadOutput);
  thrd1.join();
// Start Thread 1
  thrd2.join(); // Start Thread 2
  return 0;
}



CMD 32Bit: g++ Example.cpp -lboost_thread-mgw44-mt