What happens after you write “a.out” and press enter. What are the functionality performed by the OS after executable file is created of your code.
Program gets loaded in the memory/ram and OS hardly intervenes the execution unless program has HW interrupt (I/O) or system call(READ/WRITE) or software defined trap i.e. SIGNEL.
Steps of Executing a program Compilation Linking Loading Execution
It is very basic query but clearing the doubt always make your knowledge stronger.