#include <iostream>
#include <string>
#include <thread>
#include <mutex>
using namespace std;
atomic<int> g_mycout = 0;
void mythread()
{
for (int i = 0; i < 10000000; i++)
{
g_mycout++;
}
}
int main()
{
thread t1(mythread);
thread t2(mythread);
t1.join();
t2.join();
cout << g_mycout << "........................." << endl;
}