I need some help here..


I need an example to do that : ( a background task )


#includes blablalbalbla

void?? ExecuteTask ()
{
while(1)
{
cout << "first " << endl;
}
}

int main ()
{
ExecuteTask( );

while( 1 )
{
cout << "lol" << endl;
}
}

I want to be executed the loop from ExecuteTask and the loop from main at same time...

if i make in main 2 while ( 1 ) the 2nd isnt executed.

Recommended Answers

All 2 Replies

Uuu. Thanks :D

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.