DEV Community

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

Posted on

3 1

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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay