inlinevoidsolve(){for(inti=0;i<20;++i)cout<<"fffff\n";cout<<flush;}inlinevoidsolve2(){for(inti=0;i<20;++i)cout<<"eeeee"<<endl;cout<<flush;}intmain(){threadt1(solve);threadt2(solve2);th1.join();// 必须将线程join或者detach 等待子线程结束主进程才可以退出th2.join();cout<<"up is main";return0;}```