#include <stdlib.h>
int main()
{
printf("\nHello");
sleep(5);
printf("\nLinux");
}
In my expectation, It should be like:
PRINT Hello --- WAIT 5 SECS ---> PRINT Linux
But actually it will be like this:
WAIT 5 SECS --> PRINT Hello --> PRINT Linux
Why ? How to make my program be the first one (as my expectation) ?
And why my code can run expectedly on Win32 Console?