What is thread & process?

Answers were Sorted based on User's Feedback



What is thread & process?..

Answer / n.venkateshwara rao.

Thread is an individual entity of execution from the main
programs(i.e main thread).Thread is created by the main
thread or a child thread can also give a birth to an
another thread.

Even though threads are created from its ancestors each and
every individual thread will be having its own code unit to
execute independently(i.e Both the code seems to be
executed at same time. But this is not possible if there is
only one processor in the PC. Ofcourse the valuable time of
processor is sliced and given to the threads in the round
robin fashion provided all the threads are having same
thread priority and that is the reason for the intuition of
threads are running is same point of time.).

On other hand "Process" is an output/elevation of the
execution of the program. Process can have any number
of "threads". But thread belongs to only one process.

Is This Answer Correct ?    30 Yes 8 No

What is thread & process?..

Answer / rupesh bari

A process is started by the operating system when an
application is launched. The process owns the memory,
resources, and threads of execution that are associated with
a running instance of an executable program. When the
process is started, one thread is initially associated with
that process. As long as one thread continues to be
associated with the process, the process continues to run.

A thread is the smallest schedulable unit of execution in a
Windows application. A thread always is associated with a
particular process—after the thread is started, it never
runs in the context of another process. Although many simple
applications use only a single thread, it's not uncommon for
more complex applications to use multiple threads over the
lifetime of the process.

Is This Answer Correct ?    20 Yes 3 No

What is thread & process?..

Answer / kchenthilk

Thread describes a path of execution with in a process.
A thread consists of a stack, the state of the CPU
registers, and an entry in the execution list of the system
scheduler.

A process consists of one or more threads and the code,
data, and other resources of a program in memory.Every
process contain at least one thread ,is called primary thread.

Is This Answer Correct ?    13 Yes 3 No

What is thread & process?..

Answer / surendra mishra

thread: It is executing sequence of the process.It is of
two types 1> worker thread and 2> user theread.

Process: A Process has its own memory space, runtime
enivorment and process ID. One process can have multiple
threads in it but vice versa is not true.

Is This Answer Correct ?    11 Yes 3 No

What is thread & process?..

Answer / varun

Process is program in execution while thread is control of
execution. Process can have multiple threads init to control
various operations govern by the process. Processes have
separate address space, state information and they
communicate each other via inter-process communication.All
thread within a process share same state, memory space and
they communicate each other directly. Process is an
architectural construct while thread is coding construct.

Is This Answer Correct ?    10 Yes 2 No

What is thread & process?..

Answer / rupesh bari

A process is started by the operating system when an
application is launched. The process owns the memory,
resources, and threads of execution that are associated with
a running instance of an executable program. When the
process is started, one thread is initially associated with
that process. As long as one thread continues to be
associated with the process, the process continues to run.

A thread is the smallest schedulable unit of execution in a
Windows application. A thread always is associated with a
particular process—after the thread is started, it never
runs in the context of another process. Although many simple
applications use only a single thread, it's not uncommon for
more complex applications to use multiple threads over the
lifetime of the process.

Is This Answer Correct ?    14 Yes 7 No

What is thread & process?..

Answer / nirmalraj

Thread : A path of execution within the process; hold thread
kernel objects and address space(per thread).

Process: A heavy weight running instance of a program; hold
kernel objects and own address space(per process).

Kernel object: A Data structure maintains the statistical
information's about the process(for process) and threads(also)

Statistical Informations: register values,time stamps,
address, scheduling info.,owner of the process...etc.heaps
size,atomic values.

Note:
Threads runs the code inside the process and share the
address space with other threads inside the process i.e
share process handles.

Is This Answer Correct ?    8 Yes 1 No

What is thread & process?..

Answer / ganesh

thread is a light weight process.
and a process is a program in execution.
thread is a small flow of instruction.
whereas process
is considered to be a single unit.and thread is a sub unit

Is This Answer Correct ?    8 Yes 1 No

What is thread & process?..

Answer / surendra mishra

Thread is an executing sequence of process.
Process is started by operating system when application get
launched.

Process can have a multiple threads in it. But threads
cannot have a multipple process in it

Is This Answer Correct ?    8 Yes 2 No

What is thread & process?..

Answer / alok raghuvanshi

Example=
if we started wordpad to work on it then running the wordpad
is process and westart writting on it that time auto save
and spell check are done side by side in background of word
these two spell check and auto save is thread .

difference of process and thread==

Process is program in execution while thread is control of
execution. Process can have multiple threads init to control
various operations govern by the process. Processes have
separate address space, state information and they
communicate each other via inter-process communication.All
thread within a process share same state, memory space and
they communicate each other directly. Process is an
architectural construct while thread is coding construct.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More MFC Interview Questions

1)How to create ToolTip in MFC?

2 Answers  


Does the application have more than one object? If no, then what is the reason?

5 Answers  


Which MFC function is used to display output?

9 Answers   TCS,


what is message loop how mfc does it internally?

4 Answers   Aspire,


how does the UIThread and worker thread communicates and handle events

2 Answers   HCL,






List out the parameters of WinMain Function.

2 Answers   Mphasis,


What is stack size in win32 program?

1 Answers   HCL,


how do u identify RTTI in vc++

4 Answers   Siemens,


How to update windows title bar dynamically?

7 Answers   HCL,


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

0 Answers  


What is difference between the TCP/IP and UDP socket

5 Answers   Invensys,


1)How to change the size of a button at run time ?

1 Answers  


Categories