What are the advantages and disadvantages of multithreading?
Advantages:
- Since by multithreading multiple executions are carried out in the same process environment to a large degree independent of one other Multithreading assist the applications to perform and respond better.
- The operations can be completely interrupting driven.
- The processor utilization is inferior through multithreading. Thus the power consumption is decreased to a great extend.
- Multithreading is helpful in applications that must processes very large amount of data.
Disadvantages:
- Since the threads are sharing the similar address area and can access the resources like open files problems can take place if different threads use different data structures.
- If a parent process has multiple threads for suitable process functioning the child processes also should be multithreaded since all of them may be essential.