Ending Processes
Posted: Tue May 06, 2003 7:56 am
When a thread ends, how do you tell that its done if they dont use an exit() call? I dont see how you could end it gracefully from a return..
The Place to Start for Operating System Developers
https://forum.osdev.org/
Code: Select all
int main(void)
{
printf("I am a process :-)\n");
return 0;
}
Code: Select all
_start:
push env
push argv
push argc
call main
call exit