Program Và Programme

     

What is Program in OS?

A Program is an executable file which contains a certain phối of instructions written to complete the specific job or operation on your computer. For example, Google browser chrome.exe is an executable tệp tin which stores a phối of instructions written in it which allow you to open the browser và explore website pages.

Bạn đang xem: Program và programme


Programs are never stored on the primary memory in your computer. Instead, they are stored on a disk or secondary memory on your PC or laptop. They are read from the primary memory và executed by the kernel.

In this tutorial, we will differentiate between process và program, và learn:


What is Process?

A Process is an execution of a specific program. It is an active entity that actions the purpose of the application. Multiple processes may be related khổng lồ the same program. For example, if you double-click on Google Chrome browser, you start a process that runs Google Chrome và when you mở cửa another instance of Chrome, you essentially create a second process.


*

Difference between Program and Process

ParameterProcessProgram
DefinitionAn executing part of a program is called a process.A program is a group of ordered operations khổng lồ achieve a programming goal.
NatureThe process is an instance of the program being executing.The nature of the program is passive, so it’s unlikely to vày to anything until it gets executed.
Resource managementThe resource requirement is quite high in case of a process.The program only needs memory for storage.
OverheadsProcesses have considerable overhead.No significant overhead cost.

Xem thêm: Tài Liệu Các Dạng Toán Lớp 5 Thuong Gap Và Cách Giải, Please Wait

LifespanThe process has a shorter and very limited lifespan as it gets terminated after the completion of the task.A program has a longer lifespan as it is stored in the memory until it is not manually deleted.
CreationNew processes requireduplication of the parent process.No such duplication is needed.
Required ProcessProcess holds resources like CPU, memory address, disk, I/O, etc.The program is stored on disk in some file and does not require any other resources.
Entity typeA process is a dynamic or active entity.A program is a passive or static entity.
ContainA process contains many resources lượt thích a memory address, disk, printer, etc.A program needs memory space on disk lớn store all instructions.

Xem thêm: 30 - Star


Summary

A Program is an executable tệp tin which contains a certain phối of instructions written khổng lồ complete the specific job or operation on your computer.A Process is an execution of a specific program. It is an active entity that actions the purpose of the application.A program is a passive entity. It stores a group of instructions to be executed.Processes are allocated system resources like file descriptors & network ports.