DEV Community

Cover image for Single Thread vs Multi Thread
Furkan Gulsen
Furkan Gulsen

Posted on

Single Thread vs Multi Thread

Single Thread:

  • In this type of programming only one thread runs at a time.
  • The single-threaded model uses a polled process event loop.
  • CPU time is wasted. Idle time is more.
  • It results in less efficient programs.
  • When a thread is paused, the system waits until that thread is resumed.

Multi Thread:

  • In this type of programming, multiple threads run concurrently.
  • The multi-threaded model does not use a polled event loop.
  • CPU time is never wasted. Idle time is minimal.
  • It results in more efficient programs.
  • When one thread is paused for some reason, other threads run normally.

Top comments (0)