fayllar.orgma'muriyatiga murojaat qiling
#include
void thread_function()
{
std::cout << "thread function\n";
int main()
std::thread t(&thread_function); // t starts running
t.join(); // main thread waits for the thread t to finish