Difference Between Program and Process in Operating System
Program Vs Process in Operating System
Program
In simple words program is a passive entity and a set of instructions designed to perform some certain task.
Process
A process is an executing instance of a program. Its an active entity. We can also say process is an program in execution currently.
Program
- A program is a system activity that uses a set of instructions to perform a designated task.
- It is considered a passive entity as it resides on secondary memory.
- The resource requirement is less as it only requires memory for storage.
- The program performs tasks that are directly related to the operations of a user.
For example, notepad.exe is an executable file having a set of instructions that helps users to print and edit text files. When the user executes the program, it converts into the process.
Process
- A process is an executing instance of a program.
- In other words, the process is a program in execution
- A process is entirely dependent on the program
- It is considered an active entity as it resides on the primary memory. (RAM)
- It requires resources like processing, memory address, CPU, input and output resources to perform the task.
For example, a user can run multiple instances of Microsoft Word program.
Difference between Program and Process in Operating System
[table id=625 /]
Prime Course Trailer
Related Banners
Get PrepInsta Prime & get Access to all 200+ courses offered by PrepInsta in One Subscription
Get over 200+ course One Subscription
Courses like AI/ML, Cloud Computing, Ethical Hacking, C, C++, Java, Python, DSA (All Languages), Competitive Coding (All Languages), TCS, Infosys, Wipro, Amazon, DBMS, SQL and others
Login/Signup to comment