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
Explain segmentation with paging?
what's the latest ram lunch?
What is the difference between chkdsk r and f?
What is the difference between tty and pts?
What are the main functions of a kernel?
Can bad sectors cause blue screen?
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?
How do I check my os?
How do you know if you need 32 bit or 64 bit software?
What is authentication in operating system?
Explain booting the system in operating system.
Explain about processor and the functions executed by them?
What is system unit?
Explain various types of scheduling in operating system.
What are a trap and trapdoor?