GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Operating System
Go To First  |  Previous Question  |  Next Question 
 Operating System  |  Question 3 of 82    Print  
Difference between a process and a program?

  
Total Answers and Comments: 20 Last Update: November 19, 2009     Asked by: pinky_princess88 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
November 22, 2005 03:49:43   #1  
raghusharan        

RE: diffrentiate between a process and a program

a process is a progam in execution

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


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
November 24, 2005 09:47:42   #2  
ramya        

RE: diffrentiate between a process and a program

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.


 
Is this answer useful? Yes | No
January 12, 2006 09:32:02   #3  
pragnya mishra        

RE: diffrentiate between a process and a program

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


 
Is this answer useful? Yes | No
January 24, 2006 10:07:12   #4  
rajesh        

RE: diffrentiate between a process and a program

process:part of program is process

program:program is set of process


 
Is this answer useful? Yes | No
February 06, 2006 08:40:40   #5  
sowjanya        

RE: diffrentiate between a process and a program

process is program under execution

program is set of instructions


 
Is this answer useful? Yes | No
February 10, 2006 23:06:35   #6  
vinod        

RE: diffrentiate between a process and a program
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.
 
Is this answer useful? Yes | No
February 26, 2006 10:58:57   #7  
karishma Member Since: February 2006   Contribution: 9    

RE: diffrentiate between a process and a program
a program is a set code code which is to be executed to perform an actiona process is the executing state of a program
 
Is this answer useful? Yes | No
April 21, 2006 08:55:31   #8  
mohit12379 Member Since: March 2006   Contribution: 17    

RE: diffrentiate between a process and a program

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).


 
Is this answer useful? Yes | No
April 29, 2006 00:25:13   #9  
smitha        

RE: diffrentiate between a process and a program
program is an passive state and process is an active state.
 
Is this answer useful? Yes | No
May 18, 2006 09:15:08   #10  
kartik prakash        

RE: diffrentiate between a process and a program
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.
 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape