Insight into Program Execution class11 notes
Insight into Program Execution class 11
Insight into Program Execution class 11 notes solution
refers to the original code written in a programming language by a programmer.
refers to the code converted into computer-understandable form that a computer can understand and can directly execute.
the special software that translate a source code into machine understandable form as the translator software or simply the translator.
there are broadly two types of translator:
Understanding translation process:
the working pattern of a compiler is very different from an interpreter. Let us learn about what happens during compilation and what happens during interpretation.
The compilation process
a compiler takes the source code and then follows certain micro steps to produce a low-level code. the major steps in compilation process are listed below. Please remember that there are not any set number of steps followed by compiler.
the compilation mainly undergoes these steps:
* Analysis [Front end phase]
*Synthesis [Back end phase]
The Interpretation process
unlike a compiler, an Interpreter doesn’t translate the complete code in one go and hand over a full executable file to execute. instead, an interpreter translates a single line/section of code at a time, makes its executable version and runs it immediately.
Role of an operating system in running a program
an executable program runs on the computer with the help of operating system. the operating system has a major role to play in the execution of the program in executable form.
a running program or the executing entity is called a process.
CPU also has some registers(also called memory register sometimes) that temporarily hold data for CPU.
OS as a resource manager
1. Process Management
2. Process Scheduling by OS
3. Memory Management
4. I/O Management
Introduction to parallel computing:-
parallel computing refers to the simultaneous to solve a computational problem.
cloud computing refers to storing and accessing data and programs over the Internet instead of your computer’s hard drive. the cloud is just a metaphor for the internet. to store and access program over a cloud, you need access to a cloud.
there broadly two types of clouds one can access: