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
What is the full form itc?
What do you mean by ram?
Which technology does Pentium use - RISC or CISC?
What is critical section problem?
At what mode the fault handler executes?
A pair of redundant systems are operating, how would you ensure that when one of them goes down, the other one will take over its operation?
What are the basic functions of file management in os?
What are starvation and aging?
Briefly explain FCFS.
what are the softwares helping for auditing poblems?
What is synchronous and asynchronous process?
Can chkdsk get stuck?
Are there any problems that the cpu faces? Have any measures been taken to make it more efficient?
Command Kill any user’s all processes.
What are the primary functions of VFS?