1.

Explain the meaning of multithreading.

Answer»

The thread is an independent part or unit of a PROCESS (or an application) that is being executed. Whenever multiple threads execute in a process at the same time, we call this "multithreading". You can think of it as a way for an application to multitask.

Advantages:

  • By multithreading, computing RESOURCES are also minimized and used more effectively.
  • The RESPONSE time of the application is improved since requests from ONE thread do not block requests from other threads.
  • Consequently, if one of the threads encounters an exception, it will not affect the other threads.
  • Multithreading, on the other hand, uses fewer resources than running multiple PROCESSES simultaneously.
  • The overhead, time usage, and management associated with creating processes are much higher when compared to creating and managing threads.


Discussion

No Comment Found