Python Classroom notes 05/May/2026

Parallelism

  • We have two categories of problems

    • I/O bound
      • Waiting for network to respond, db to respond
    • CPU bound
  • Problem or villian in this story with threads is GIL

  • Concurrency (CPU Bound) => how to use cores
  • How to make my program non blocking i.e. when some code is waiting for something to happen, other parts of my application work.

Threads

  • Refer Here for a basic multi threaded code.

  • In python we have GIL (Global Interpreter Lock)

  • Refer Here for gil deep dive

By continuous learner

enthusiastic technology learner

Leave a Reply

Discover more from Direct AI Powered By Quality Thought

Subscribe now to keep reading and get access to the full archive.

Continue reading