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

Explain segmentation with paging?

641


what's the latest ram lunch?

2249


What is the difference between chkdsk r and f?

498


What is the difference between tty and pts?

518


What are the main functions of a kernel?

559






Can bad sectors cause blue screen?

549


Why is a single serial port managed with a single interrupt-driven i/o but a front-end processor is managed using a polling i/o, such as a terminal concentrator?

489


How do I check my os?

530


How do you know if you need 32 bit or 64 bit software?

500


What is authentication in operating system?

568


Explain booting the system in operating system.

587


Explain about processor and the functions executed by them?

551


What is system unit?

580


Explain various types of scheduling in operating system.

551


What are a trap and trapdoor?

588