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

Do you have an idea about MFC?

0 Answers   C DAC, CDAC,


i have created runtime menu -- ( admistrator ->managepackage,manage module). but now i want to open a dialog when i select manage package and any other diaolg when selecting manage module ( whole selection is at run time only ) . Please HELP .its urgently required

3 Answers   Patni,


What is the command routing in MFC framework?

3 Answers  


what is the use of CWinApp class?

3 Answers   Mphasis,


What is the difference between ASSERT and VERIFY?

2 Answers  






Tell me the work of HTREDUCE and HTZOOM

1 Answers   E Logic,


Will there be any difference in the image buffer size if it is loaded in from CString to LPTSTR using GetBuffer()? lptstr = string.GetBuffer(0);

2 Answers  


1)How to change a text of a button in runtime?

2 Answers  


1)dynamic creation of a Button ?

2 Answers   TCS,


How can update edit control data of an executing application from other application?

3 Answers   HP,


What is LPCTSTR? What does LP denote it?

4 Answers  


What is the difference between GetMessage and PeekMessage ?

3 Answers  


Categories