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

WHATE IS DIFFERENT BETWEEN ANLOG , PLC & DCS OR EXPLAIN ANALOG / PLC / DCS SYSTEME

2470


What do you mean by thread starvation?

574


How do you fix a blue screen?

527


What is Scheduling algorithm?

633


Can I change a 32 bit to 64 bit?

537






How do I find the location of an excel file?

549


How are data structures handled by ntfs?

588


What is turnaround time?

574


Define Operating System Types.

599


How does reference counting manage memory allocated objects? When can it fail to reclaim objects?

502


How much ram can xp handle?

512


Explain page cannibalizing?

557


How will you check if R3 system is a Unicode or non - Unicode system?

607


What are the essential conditions for a deadlock to occur?

539


What is Direct Access Method?

599