GeekInterview.com
Series: Subject: Topic:
Question: 88 of 90

Difference between a process and a program?

Asked by: pinky_princess88 | Member Since Nov-2005 | Asked on: Nov 21st, 2005

View all questions by pinky_princess88

Showing Answers 1 - 34 of 34 Answers
raghusharan

Answered On : Nov 22nd, 2005

a process is a progam in execution

a program is a series of instructions to perform a particulat task

Yes  1 User has rated as useful.
  
Login to rate this answer.
ramya

Answered On : Nov 24th, 2005

   Process is a part of a program. Process is the part where logic of that particular program exsists.

                     Program is given as a set of process. In some cases we may divide a problem into number of parts. At these times we write a seperate logic for each part known as process.

  

  
Login to rate this answer.
pragnya mishra

Answered On : Jan 12th, 2006

process is program under execution ,process is an active entity

while a program is in form of programming language and program is a passive entity.

moreover,a program is stored in secondary storage but process is stored in memory

Yes  1 User has rated as useful.
  
Login to rate this answer.
rajesh

Answered On : Jan 24th, 2006

process:part of program is process

program:program is set of process

  
Login to rate this answer.
sowjanya

Answered On : Feb 6th, 2006

process is program under execution

program is set of instructions

Yes  1 User has rated as useful.
  
Login to rate this answer.
vinod

Answered On : Feb 10th, 2006

Please do not confuse process with program. Program is only a set of instructions and process is a program in memory. Thread is a basic unit of execution within a process. This means program is something which is not loaded in memory yet. And Process is loaded in memory but not a complete execution unit. We say only a thread is under execution. I would request some of my friends, please refer somewhere thoroughly before sending misleading answers. 

  
Login to rate this answer.

a program is a set code code which is to be executed to perform an actiona process is the executing state of a program

  
Login to rate this answer.

Program is nothing but the set of all the instruction which requires to carry out some specific job.Before come into execution they must be convert in binary codes which should be understood by loader os OS.Generally in Windows it like EXE file which is stored in Portable Executable (PE) Format on Secondary Memory Like hard disk.

A process is usually defined as an instance of a running Program and consists of two components:

1) A kernel object that the operating system uses to manage the process. The kernel object is also where the system keeps statistical information about the process.

2) An address space that contains all the executable or DLL module's code and data. It also contains dynamic memory allocations such as thread stacks and heap allocations.

Processes are inert. For a process to accomplish anything, it must have a thread that runs in its context; this thread is responsible for executing the code contained in the process's address space. In fact, a single process might contain several threads, all of them executing code "simultaneously" in the process's address space. To do this, each thread has its own set of CPU registers and its own stack. Each process has at least one thread that executes code in the process's address space. If there were no threads executing code in the process's address space, there would be no reason for the process to continue to exist, and the system would automatically destroy the process and its address space.

For detail u must learn Jeffery Richter articles http://www.JeffreyRichter.com).

  
Login to rate this answer.
smitha

Answered On : Apr 29th, 2006

program is an passive state and process is an active state.

  
Login to rate this answer.
kartik prakash

Answered On : May 18th, 2006

a process is a program in execution.it also includes the current activity,as represented by the value of program counter and the contents of the program counter.a process includes a process stack which contains the temporary data and a data section which contains the global variables.while a program is a sequence of instructions written in a manner to obtain the desired output.

  
Login to rate this answer.
akhilesh tiwari

Answered On : Jun 30th, 2006

process is a part of code which under execution

or in detail u can say that in main memory

whereas a program is a complete task or work to be done

process can be program but program is very rarel a process(if small)

  
Login to rate this answer.
santoshbaral

Answered On : Mar 30th, 2007

process is the active state of an entity means the program on execution.where as program is the  passive state of an entity means the set of logics that are applied to perform a task.

  
Login to rate this answer.

Program
 
        Simply a passive entity stores the set of instructions to be executed in the file.

Process

         An Active Entity which executes the set of instructions (i.e. program),and has many things associated  with that program to execute  like Program counter,regtister etc. 

  
Login to rate this answer.
selva_be2006

Answered On : Apr 16th, 2007

View all answers by selva_be2006

process is program under execution

program is set of instructions

  
Login to rate this answer.
prakash_cse

Answered On : Apr 28th, 2007

View all answers by prakash_cse

Process is a program in execution.

Program is a sample of code which is used to do a particular task.

  
Login to rate this answer.
vamsisai

Answered On : Jun 3rd, 2007

I partly disagree with above given answers., as they are nt totally related to the topic.
Process is active state of program and it is status of given task mentioned in

program, it gives the info to main memory about its state nd other details like what

part it has executed up-to that instance. It keeps track of thestatus of registers and

instances of the resources it hold and required resources, wa cost it incures on the

cpu after it is donewith its work.

Program is total information about what has to be done with CPU and other

resources for which it is liable to complete the given task. In some cases it is

collection of different Thick weight process and Lite weight process( threads) as we

may require to run various modules of different programs in some single program. So
process is like platform on CPU for running different tasks of given program and part of the

main set of process.

For example while logging into yahoo messenger most of the times we get two instances of messenger executablefile instances on applications tab in task manager.




  
Login to rate this answer.
vinay

Answered On : Aug 5th, 2007

Basically process is an active entity, it will have its own main memory area and other resources allocated to it and will be using cpu cycles and generally performs some operation.

whereas a program, being a passive entity can be considered as just a file containing set of instructions written in some programming language which occupies space generally in secondary storage. If it is not accessed or executed it does not require other system resources such as cpu cycles or main memory area.

the connection between these two is a program when executed becomes a process..

  
Login to rate this answer.

process is program under execution.
Program is only a set of instructions and process is a program in memory. 
Thread is a basic unit of execution within a process. 
This means program is something which is not loaded in memory yet. And Process is loaded in memory but not a complete execution unit. 
We say only a thread is under execution.

  
Login to rate this answer.
simpipandey

Answered On : Aug 24th, 2009

View all answers by simpipandey

A program is a logical entity which contains the logic of the process to be executed.
While a process is a program in execution.

  
Login to rate this answer.
ashishdreams

Answered On : Nov 8th, 2009

View all answers by ashishdreams

We all work on PC. Let us suppose I have create a program of displaying name on the screen and printing it on the paper, now when I execute this program.  The operating system spawns a process that will write the name on the screen and another process for printing it on the printer.  Because Our operating system is aware of the kind of hardware and monitor attached thus a process help in executing a program.

We can have system processes(e.g.svchost.exe) that executes system code nd user processes that execute user code, so differentiate the processes accordingly.

While running a program just press ctrl+alt+delete you will get to know the procsses running on your PC.   If 2 programs are using the same process then also we will have 2 instances.

E.g. If we have opened 2 google chrome window (e.g. One for geekinterview and another for indiatimes) then also when we press ctrl+alt+delete we will see 2 chrome.exe

Reason is, every process maintains information like current activity represented by program counter, data section (for temporay variables and some more info) and text section (for global variabled and some more info) so for these 2 google chrome window the data section would be different.

I hope this knowledge would help you,
Thanks and keep helping people.

  
Login to rate this answer.
Lecks

Answered On : Feb 21st, 2010

View all answers by Lecks

A program is actually only part of a process. A program is merely an inactive entity in the form of some programming language. The process invoked by starting the program also includes a program counter, variable values, contents of processor registers, process stack etc. and is an active working unit in the system. This context of process is not to be confused with that of a method of a program, which would be a subroutine included in a program to perform a task. Also, you may have multiple processes running of the same program, say windows explorer. Each is the same program but different processes.

  
Login to rate this answer.
sangeetha26

Answered On : May 17th, 2010

View all answers by sangeetha26

Process is program under execution.
Program is a set of instruction.

  
Login to rate this answer.
Jana Rthan

Answered On : Jan 3rd, 2011

View all answers by Jana Rthan

Process is an active entity.
Process is a set of programs under execution and it resides in main memory.


Program is an passive entity.
Program is a set of instructions that resides in secondary memory.

  
Login to rate this answer.
Vaibhav Raj

Answered On : Apr 11th, 2011

View all answers by Vaibhav Raj

A Program is a passive unit of a job in computing language. It is a set of instruction to perform a task. It is stored on secondary memory and does not have any other resource.


While a Processis an active unit of job in computing language. Similar to program it also has set of instructions to perform a job, but it is residing in the main memory. It has several resources allocated on the computer. A process has a Process Control Block (PCB), a Call-Stackfor subroutines, a Data-Segment for global variables, Heap for dynamic memory allocation and deallocation and along with these data structures a process has access to CPU Registers, IO-Devices and Program Counter.

  
Login to rate this answer.
surendrap

Answered On : Oct 4th, 2011

View all answers by surendrap

1: process is a program at execution time.
2: a part of program i.e some set of instructions which are in main memory i.e. thread is process.
3: thread is the smallest unit of process.

  
Login to rate this answer.
deepak

Answered On : Jun 23rd, 2012

program is a static process while process is a dyanamic

  
Login to rate this answer.
nidhi trivedi

Answered On : Jun 25th, 2012

A programme is a set of instruction which is stored in secondry storage device.In order to execute a programme resources primary memory,processor,memory,Input/output devices are required when these resources are allocated to a programme it becomes a resource.

  
Login to rate this answer.
Dinesh

Answered On : Jun 30th, 2012

Process means program under execution.
Program means set of instructions that executes for particular task.

  
Login to rate this answer.
sachin chaudhary

Answered On : Sep 6th, 2012

A program is a set of instructions that are to perform a designated task, where as the process is an operation which takes the given instructions and perform the manipulations as per the code, called execution of instructions. A process is entirely dependent of a program.

- A process is a module that executes modules concurrently. They are separate loadable modules. Where as the program perform the tasks directly relating to an operation of a user like word processing, executing presentation software etc.

  
Login to rate this answer.
Ypp174

Answered On : Sep 17th, 2012

A Process can run only one program at a time but a single program can run many process at a time.

  
Login to rate this answer.
Sahana P R

Answered On : Nov 8th, 2012

program is a passive entity and process is an active entity...

  
Login to rate this answer.
AMITAV CHAKRABORTY

Answered On : Feb 26th, 2013

PROCESS:
1. Instruction execution in machine code
2. Active entity
3. Store in main memory

PROGRAM:
1. Instruction is only programming language
2. Passive entity
3. Store in secondary storage

  
Login to rate this answer.
priyanka chavan

Answered On : Nov 15th, 2013

process is dynamic entity.
program is static entity.program does not perform anything by itself.

  
Login to rate this answer.
Simran Jeet Singh Bagga

Answered On : Feb 16th, 2014

A Program or Computer Program essentially provides a sequence instructions (or algorithms if you rather) to the operating system or computer. These computer programs come in an executable form that the Operating System recognizes and can use to directly execute the instructions.
Once an executable has been executed a process begins. A process is simply an instance of a computer program. You can think of a process as the execution of the instructions contained in a computer program. When you view the Task Manager on a Windows computer you can see all of the current processes. Processes own resources such as virtual memory, operating system descriptions (handles, data sources, sinks etc), security attributes and various other elements required to process effectively.

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Question Categories

Shell Scripting Interview Questions

Solaris Admin Interview Questions

UNIX Interview Questions

Unix Programming Interview Questions

Windows Interview Questions

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.