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
Describe horizontal scalability and vertical scalability.
What is the meaning of Thread Priority?
How long does it take to chkdsk 1tb?
What are the activities related to the time shared user program management?
How can two processes communicate with one another?
Can ram affect fps?
How do I find my os version?
Why do I have x86 program file?
Give some benefits of multithreaded programming.
What is the maximum ram for a 64 bit operating system?
How to setup never expired user password?
How do you check if your computer is 32 or 64 bit?
Does ram affect excel performance?
Briefly explain thrashing.
Is program files x86 64 bit?