In this post, you will learn

  • The basic concept of Threading
  • Implement Threading using a Threading library
  • Implement Threading using a ThreadPoolExecutor
  • Pros and Cons of using Threading

A Thread is:

  • Smallest set of independent commands to be executed in a program
  • Multiple threads within an application can execute simultaneously on a CPU referred to as MultiThreading
  • Runs always within a program and cannot run on its own
  • Used when programs ar network bound or there is heavy I/O operation
  • Memory is shared between multiple threads within a process and hence has lower resources consumption

#threading #python #implementing

Implementing Threading in Python
1.40 GEEK