In: Computer Science
The operating system provides an interface between application programs and the computer hardware. Discuss the process of the execution of any application program on the hardware using all managers of the operating system.
As given in above question that The operating system(OS) provides an interface between application programs and the computer hardware,which is so true.
Os Manages all the functions like Memory Management,Process Management, I/O management and many more.
So, we saw that OS is The God for most of the Function in any software.
Now Let's understand the process for execution of any application Program on the Hardware with the help of all of these management part's of OS.
Program is nothing but a sequence of instructions and these instructions are executed in CPU one by one.
Main procedure can be understand like this step by step::
1. These sequence of instructions is stored in memory first.
2. The memory address where program start from first instruction will be copied into program counter.
3. Now, CPU by using address bus , this address from PC will send to memory.
4. By data bus memory location data, CPU will copy into instruction register.
5. Now this instruction pointer will incremented automatically to contain the address of the next instruction in memory location.
6. The data inside instrucation register will be executed by CPU.
and again it will go to step 3.
So, we can see the from step 3 to step 6 is making one cycle and this cycle is called instructon execution cycle.
Inside this, steps no 3,4,5 are part of instruction fatch.
So this is like ........Fatch --> decode --> Execute --> repeat till end of instruction --> Terminate.
So, this is how any program application is executed by OS.
Also, in between OS handled many interuption and priority instruction that are executed first and then continue the execution. That's all depends on types of OS and Features of OS.