View all questions by pinky_princess88
Answered On : Nov 22nd, 2005
a process is a progam in execution
a program is a series of instructions to perform a particulat task
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.
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
Answered On : Jan 24th, 2006
process:part of program is process
program:program is set of process
Answered On : Feb 6th, 2006
process is program under execution
program is set of instructions
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.
a program is a set code code which is to be executed to perform an actiona process is the executing state of a program
Answered On : Apr 21st, 2006
View all questions by mohit12379 View all answers by mohit12379
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).
Answered On : Apr 29th, 2006
program is an passive state and process is an active state.
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.
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)
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.
Answered On : Apr 7th, 2007
View all questions by JulieAsh07 View all answers by JulieAsh07
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.
process is program under execution
program is set of instructions
Process is a program in execution.
Program is a sample of code which is used to do a particular task.
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.
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..
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.
A program is a logical entity which contains the logic of the process to be executed.
While a process is a program in execution.
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.
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.
Process is program under execution.
Program is a set of instruction.
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.
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.
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.
Answered On : Jun 23rd, 2012
program is a static process while process is a dyanamic
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.
Answered On : Jun 30th, 2012
Process means program under execution.
Program means set of instructions that executes for particular task.
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.
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.
Answered On : Nov 8th, 2012
program is a passive entity and process is an active entity...
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
Shell Scripting Interview Questions
Solaris Admin Interview Questions
Unix Programming Interview Questions
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.
