Advantages of having multiple threads per process
Hi,
What are the advantages of having multiple threads per process instead of single thread per process?
Explain in detail.
Thanks.
Hi,
What are the advantages of having multiple threads per process instead of single thread per process?
Explain in detail.
Thanks.
Hi there, Johny here
Using multiple threads has many advantages over single threading. Multiple threading allows different processes to run at the same time without any collision between them, unlike running in single thread, all the processes are linear and needs to wait for the process ahead to finish before executing the next.
With multiple threading, processes, executions can be down simultaneously by placing them in different threads and running them at the same time. Multiple threading is especially useful when a need to run two processes at the same time like playing music while typing in word.
Multi threading also reduces the time a process can finish by simultaneously running processes that can be run together using different threads
Hi
I will help you understand single thread and multiple thread. In single threaded process, only one work can be done and it workload increases. But in case of multithread, there is no need to run multiple process. This saves workload. Many things can be done with multiple threads whereas one in single thread.