Advantages and Disadvantages of threads

Advantages of threads

  • We can execute multiple tasks of an application at a time
  • Reduces the complexity of a big applications
  • Helps to improve the performance of an application drastically
  • Utilizes the max resources of multiprocessor systems
  • Better user interface in case of GUI based applications
  • Reduces the development time of an application
  • All the threads are independent , any unexpected exception happens in any of the thread will not lead to an application exit.

Disadvantages of threads

  • Thread synchronization is an extra over head to the developers
  • Shares the common data across the threads might cause the data inconsistency or thread sync issues
  • Threads blocking for resources is more common problem
  • Difficult in managing the code in terms of debugging or writing the code
<-PREV NEXT->