Definition of Program: Program is a sequence of instructions for the computer to perform specific tasks.
Definition of Process:
There are several definitions of the term process, including:
We can also define another way that process is an entity that consists of two elements, Program Code (Which may be shared with other processes that are executing the same program) and set of data associated with that code.
Now when the processor begins to execute this program code, and we refer to this executing entity as a process. The process will need certain resources—such as CPU time, memory, files, and I/O devices—to accomplish its task. These resources are allocated to the process either when it is created or while it is executing.
Process requires two types of time CPU time and I/O time.