Multitasking vs Multi-Processing vs Multi-Threading
Multitasking
Doing several tasks simultaneously is called multitasking.
Example: A person cooks the food, but at the same time he can listen to music and take care of children.
In terms of technical terms, there are two types of multitasking.
1) Process-based multitasking is called Multi-Processing.
2) Thread-based multitasking is called Multi-Threading.
Multi-Processing
Executing several tasks simultaneously, where each task is a separate independent process, is called multiprocessing.
If any of the processes get an error or execution fails then it won’t disturb the other process execution
Example: While typing a Java program in an editor, we can listen to audio songs from the same system, and at the same time, we can download a file.
Multi-Threading
Executing several tasks simultaneously, where each task is a separate independent sub-program of the same program which executed by thread, is called multithreading.
If any of the threads get an error then it disturbs the entire program execution.

