[1] Threads cannot live on its own, it must live within a
process while process cam live on its own. Process has its own input, resources
etc.
[2] There can be more than one thread in a process but there it is not possible to have two process in a single thread.
[3] The thread creation is inexpensive because OS does not involve while the process creation is expensive .
[4] Threads minimize the context switching while the process has expensive context switching.
[5] If a thread in a process dies, another thread in a thread stack can run. but if a process dies, its resources are de-allocated and all its thread dies.
[6] Process has separate address space where as thread share the address space.
[7] Threads are easier to create because they don’t require separate address space where as process are complex to create because it requires separate address space.
[8] Threads are considered light weight because they uses less resources then processes.
No comments:
Post a Comment