different between multiprocessing and multi threading
Answers
Multiprocessing:--
1.Multiprocessing is basically executing multiple processes at the same time on multiple processors.
2.Multiple processes are executed concurrently.
3.Creation of a process is time-consuming and resource intensive.
4.Multiprocessing can be symmetric or asymmetric.
Multi threading:--
1.Multi programming is keeping several programs in main memory and executing them concurrently using a single CPU only.
2.Multiple threads of a single process are executed concurrently.
3.Creation of a thread is economical in both sense time and resource.
4.Multithreading is not classified.
Explanation:
The key difference between multiprocessing and multithreading is that multiprocessing allows a system to have more than two CPUs added to the system whereas multithreading lets a process generate multiple threads to increase the computing speed of a system.