0 votes
in JAVA by
What is the difference between processes and threads?

1 Answer

0 votes
by

The main difference between them is that

a Process is a program which is executing some code and

a Thread is an independent path of execution in the process.

A process can have more than one thread for doing independent task e.g. a thread for reading data from disk, a thread for processing that data and another thread for sending that data over the network.

Related questions

0 votes
asked Apr 10, 2021 in JAVA by Robindeniel
0 votes
asked Dec 26, 2023 in Dot Net by GeorgeBell
...