#include<stdio.h>
#include<conio.h>
void hello()
{ printf("\nHELLO\n");
}
int main()
{
hello();
hello();
hello();
hello();
getch();
return 0; 
}

If I run this code on a compiler,how many processes and how many threads will be running on the compiler and which ones?
Does a duplicate function call consist another process or thread?
Does a main() function have any process associated with it?

Number one, The code doesn't run in a compiler. The code is compiled by the compiler so that it can run within an operating system environment.

How many threads? Just one, the main thread.

Number one, The code doesn't run in a compiler. The code is compiled by the compiler so that it can run within an operating system environment.

How many threads? Just one.

Thanks.....
Yes,I know compiler only compiles the code.

And what about processes?


And what about processes?

What about them?

What about them?[

How many processes will run ?
And which ones?

What about them?[

How many processes will run ?
And which ones?

I told you, in the code you posted, only one thread is running.