What is Difference between thread and process?

Answers were Sorted based on User's Feedback



What is Difference between thread and process?..

Answer / p govind rao (bangalore)

A thread is in fact just that, a thread. Something simple.
A simple chain of computing that is set up as in 'a row'. A
chain of commands that can be useful to the programmers
needs.
Sometimes the programmers can actually control the flow of
events that take place, but most commonly that is up to the
programming language to do it for him.
Most useful is the 'multichannel' programming threads, that
are distributed along different paths to be gathered up in
the end.
Each thread can then be processed independently of each-
other in a multiprocessor environment. Therefore
these 'threads' can be assembled (sometimes) and put
forward to the user at a higher speed the otherwise
possible.
Process is a program in execution where as thread is a
seperate path of execution in a program.

The major difference between threads and processes is
1.Threads share the address space of the process that
created it; processes have their own address.

2.Threads have direct access to the data segment of its
process; processes have their own copy of the data segment
of the parent process.

3.Threads can directly communicate with other threads of
its process; processes must use interprocess communication
to communicate with sibling processes.

4.Threads have almost no overhead; processes have
considerable overhead.

5.New threads are easily created; new processes require
duplication of the parent process.

6.Threads can exercise considerable control over threads
of the same process; processes can only exercise control
over child processes.

7.Changes to the main thread (cancellation, priority
change, etc.) may affect the behavior of the other
threads of the process; changes to the parent process does
not
affect child processes.





process is a execution of a program and program contain
set of instructions but thread is a single sequence
stream within the process.thread is sometime called
lightweight
process. single thread alows a os to perform singler task
ata time similarities between process and threads are:

1)share cpu.
2)sequential execution
3)create child
4)if one thread is blocked then the next will be start to

run like process. dissimilarities:
1)threads are not independent like process.
2)all threads can access every address in the task unlike
process.
3)threads are design to assist onr another and process
might or not might be assisted on one another.


thread is a light weight process and process is heavy
weight means to say process occurs many threads and
superset of threads and also says threads are sub set of
process

Process is a memory block of an application instance.
Thread is a memory block of a process instance.

Is This Answer Correct ?    3 Yes 1 No

What is Difference between thread and process?..

Answer / abc

a process is a program in execution.
a process creates threads.
a cpu has a single path for execution.
a thread is a medium to send the instruction from the ram
to the cpu for execution.
thread is a light weight process.
since process takes lot of time to create process id's so
threads are formed which works within the same process id.

Is This Answer Correct ?    2 Yes 0 No

What is Difference between thread and process?..

Answer / p.l.narayan

Threads starts from the process so thread is child of process.

Is This Answer Correct ?    2 Yes 0 No

What is Difference between thread and process?..

Answer / vaishnavi

PROCESS
It is a executing instance of an application.
It is having multiple threads.
Used for more heavyweight tasks.

THREAD
A process is having several executable program(threads).
It is a path of execution within a process.
Used for small tasks.

Is This Answer Correct ?    2 Yes 0 No

What is Difference between thread and process?..

Answer / kranthi

process is the instance of the program.
thread is a connection of any element.

Is This Answer Correct ?    2 Yes 0 No

What is Difference between thread and process?..

Answer / aahmed

Thread also known as a light weight process is a smaller
unit within a process which can be scheduled and executed
similar to traditional processes. They share the same
resources and memory space since they are both hand in hand
with one another. In contrast to traditional processing
threads reduce overhead time and the amount of information
is needed is also reduced. As a result, the processing
computing stage enhances as they both follow similar wait
and signal states. Unlike traditional processes, each thread
in a process has its own processor registers, program
counter, stack and status. After the process is complete
both thread and traditional processes release its resources.

Is This Answer Correct ?    4 Yes 3 No

What is Difference between thread and process?..

Answer / paul pacurar

A thread is an PROGRAM executing unit. A process it's also a
task running at the OPERATING SYSTEM level. The thread runs
on a PROCESS. Hence, a process can contain a thread or more,
while about a thread we cannot say that contains processes.

Is This Answer Correct ?    2 Yes 1 No

What is Difference between thread and process?..

Answer / kush kaushik

single thread is used to make a cloths. where as multithreading is used to do many things like making cloths, binding papers in exam,etc.

process means waiting. have u seen many place there is written work in process.

Got it everyone for more queries mail me at kush.kaushik87@gmail.com

Is This Answer Correct ?    1 Yes 0 No

What is Difference between thread and process?..

Answer / shyam

What is Difference between thread and process?
Thread is not take momery space.
But Process is take momery space.

Is This Answer Correct ?    1 Yes 0 No

What is Difference between thread and process?..

Answer / arjun,dinesh

THREAD:Each thread consist of prog counter ,stack reg
set,child threads and state of the thread.

PROCESS:Process have address space,global variable open
files ,child process,timer signals,semaphoresand accounting
information.

THREAD:A thread cant enter into the processor directly
without taking the help of any process.

PROCESS: A process can enter with out taking help of any
other thread

Is This Answer Correct ?    6 Yes 6 No

Post New Answer

More Operating Systems General Concepts Interview Questions

How does disk operating system work?

0 Answers  


Enumerate the different RAID levels.

0 Answers  


Explain arm-stickiness?

0 Answers  


Give the disadvantages of Havander's Strategies.

0 Answers  


What is authentication in operating system?

0 Answers  






What does af_inet stand for?

0 Answers  


Explain the positioning time for a disk.

0 Answers  


List the Coffman's conditions that lead to a deadlock?

2 Answers   Cap Gemini, HCL, HP,


What is pipelining in reference to ram?

0 Answers  


What is context-switching in multi-threading?

0 Answers  


Tell me what has triggered the need for multitasking in pcs?

0 Answers  


How do you format a pc?

0 Answers  


Categories