What happens when the user gives a command to run a program?
Answer:
-The operating system first allocates the requisite amount of
memory to the program, then, through loader, loads the program
in the allocated memory, and then passes on the control to the
program. The program runs the supervision of the operating system.
-When the program finishes its execution or some runtime errors occurs,
the operating system removes the program from the memory.