in Technology by

Differentiate between process and thread?

1 Answer

0 votes
by

There are the following differences between the process and thread.

  • A Program in the execution is called the process whereas; A thread is a subset of the process
  • Processes are independent whereas threads are the subset of process.
  • Process have different address space in memory, while threads contain a shared address space.
  • Context switching is faster between the threads as compared to processes.
  • Inter-process communication is slower and expensive than inter-thread communication.
  • Any change in Parent process doesn't affect the child process whereas changes in parent thread can affect the child thread.

Related questions

0 votes
    Differentiate between the Thread class and Runnable interface for creating a Thread?...
asked Jan 19, 2021 in Technology by JackTerrance
0 votes
0 votes
    I am using gunicorn with two worker to run a Flask API for deploying an ML model. And I open ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 3, 2022 in Education by JackTerrance
0 votes
    I was asked below two questions in an software engineer interview but could not answer. I did goggle search ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    To differentiate between singular and plural, __________. A. (?:text|texts) B. (.*text|texts) C. (*text|texts) D. (?text|texts)...
asked Dec 13, 2022 in Technology by JackTerrance
0 votes
    Is Scrum and Agile the same? If not so, differentiate between them....
asked Aug 19, 2021 in Technology by JackTerrance
0 votes
    How to differentiate between ActionResult and ViewResult?...
asked Jun 14, 2021 in Technology by JackTerrance
0 votes
    Differentiate between univariate, bivariate, and multivariate analysis....
asked Apr 26, 2021 in Technology by JackTerrance
0 votes
    Differentiate between Reusable Transformation and Mapplet....
asked Mar 29, 2021 in Technology by JackTerrance
0 votes
    Differentiate between joiner and Lookup Transformation....
asked Mar 27, 2021 in Technology by JackTerrance
0 votes
    Differentiate between Source Qualifier and Filter Transformation?...
asked Mar 27, 2021 in Technology by JackTerrance
0 votes
    Differentiate between TOS for Data Integration and TOS for Big Data?...
asked Mar 23, 2021 in Technology by JackTerrance
0 votes
    Differentiate between TOS for Data Integration and TOS for Big Data....
asked Mar 23, 2021 in Technology by JackTerrance
0 votes
    Differentiate between the usage of tJava, tJavaRow, and tJavaFlex components....
asked Mar 18, 2021 in Technology by JackTerrance
0 votes
    Differentiate between “insert or update” and “update or insert”....
asked Mar 18, 2021 in Technology by JackTerrance
...