I came across this statement while reading difference between Thread and Process. Please explain.
I came across this statement while reading difference between Thread and Process. Please explain.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think it’s trying to say that creating a new thread and communicating between threads is reasonably efficient/cheap, whereas creating a new process and communicating between processes is reasonably inefficient/expensive.
It’s a bit of a blanket statement though – the costs vary significantly between different operating systems. The statement is “more true” on Windows than on most implementations of Unix (which try to make process creation cheap) and even on Windows it’s untrue to say that threads have “almost no overhead”. Creating a new thread is still far from a trivial operation.