Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
Differentiate between process and thread?
Home
JAVA
Differentiate between process and thread?
0
votes
asked
Jun 16, 2022
in
JAVA
by
Robindeniel
Differentiate between process and thread?
java-process
java-thread
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jun 16, 2022
by
Robindeniel
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.
...