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

What are the various ipc mechanisms?

547


Define page fault interrupt?

759


How to implement Threading?

584


Is bgp layer 3 or 4?

545


What is Real Time Operating System (RTOS)? What are the advantages of RTOS?

600






What is dedicated processor assignment in operating system (os)?

827


Page replacement algorithm in Operating System?

597


State the differences between ddr1, 2 and 3.

530


What does thread safe mean?

582


Can chkdsk repair bad sectors?

548


Is microsoft edge replacing internet explorer?

521


Which is the best page replacement algorithm and Why? How

548


How can you check whether a machine is 64 bit or 32 bit?

622


What is the Difference between Loading and Linking ?

15426


What do you know about system model?

620