Listing B
// thread1
void run_thread1()
{
   std::cout << "message " << "from thread " << 1 << std::endl;
}
 
 
// thread2
void run_thread2()
{
   std::cout << "message " << "from thread " << 2 << std::endl;
}