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.