difference between thread and process in java
Difference between Process and Thread:
1)Process is a program under execution whereas Thread is a part of program.
2)Process are heavy weight programs which consume considerable amount of memory for execution and are heavily dependent on system resources for their execution whereas Threads are light weight and use the min available system resources as a whole and can execute simultaneously to achieve a given task.
3)A process can contain n number of threads.