What is Difference between thread and process?

Answer Posted / ankit tripathi

Technically, a thread is defined as an independent stream
of instructions that can be scheduled to run as such by the
operating system.
So, in summary, in the UNIX environment a thread:
o Exists within a process and uses the process
resources
o Has its own independent flow of control as long as
its parent process exists and the OS supports it
o Duplicates only the essential resources it needs to
be independently schedulable
o May share the process resources with other threads
that act equally independently (and dependently)
o Dies if the parent process dies - or something
similar
o Is "lightweight" because most of the overhead has
already been accomplished through the creation of its
process.


Whereas in case of process, every process has its own
memory management, two process cannot communicate without
using IPCS or Sockets, they do not share resources and
every process has its own process ID(pid).

Is This Answer Correct ?    65 Yes 40 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many bit is my computer?

537


What do you mean by a semaphore?

651


Explain briefly about assembler and its functioning?

565


What mean operating system?

534


What are the different types of kernel?

592






What resources are used when a thread created?

534


Is it possible to have a deadlock involving only one process?

582


How can you pause the execution of a Thread for a certain amount of time?

609


Will increasing ram speed up my laptop?

569


What is the main purpose of an operating system?

566


How do I remove a second operating system from my computer?

545


Why is 32 bit referred to as x86?

514


What is the code of mobile?

531


Can bad sectors cause blue screen?

553


What are loosely coupled systems?

600