|
OqimliDastur
|
Sana | 23.06.2022 | Hajmi | 34,5 Kb. | | #697576 |
| Bog'liq 5e8aec0c02ed216db7a3fefc4ca4852e6dca
Deponentlanadigan materiallarning titul varag‘i
EHM uchun dastur (Ma’lumotlar bazasi) nomi:
“OqimliDastur.”
Huquq ega(lar)si :
Turayev Ixtiyor Baxtiyorovich
Narziyev Umidjon Zarifovich
_________________________________________________________
_________________________________________________________
Muallif(lar):
Turayev Ixtiyor Baxtiyorovich
Narziyev Umidjon Zarifovich
_________________________________________________________
_________________________________________________________
EHM uchun dasturni identifikatsiya qiluvchi materiallar dastlabki matni (Dastur kodi)
#include
#include
#include
using namespace std;
void MJarayon()
{
for (size_t i=0; i<10; i++)
{
cout << "ID oqim = " << this_thread::get_id() <<"\tMJarayon\t"<< i << endl;
this_thread::sleep_for(chrono::milliseconds(1000));
}
}
int main()
{
thread oqim(MJarayon);
thread oqim2(MJarayon);
for (size_t i=0; i<10; i++)
{
cout << "ID oqim = " << this_thread::get_id() <<"\tBosh funksiya\t"<< i << endl;
this_thread::sleep_for(chrono::milliseconds(500));
}
oqim.join();
oqim2.join();
return 0;
}
Do'stlaringiz bilan baham: |
|
|