🪴 Nishanth Gobi

Search

SearchSearch
Home

>

Zettelkasten

>

Permanent Notes

>

Point of Multi-threading in Python with GIL

Point of Multi-threading in Python with GIL

May 15, 2024, 1 min read

  • #zettel
  • #lit
  • #python
  • #multi-threading
  • GIL is only a concern for CPU bound tasks and if you have I/O bound tasks they can be executed in parallel
  • Concurrency - sometimes it’s beneficial to perform tasks concurrently (Managing multiple connections in a server)

Related §

GIL


Refs §

  1. https://stackoverflow.com/questions/52507601/whats-the-point-of-multithreading-in-python-if-the-gil-exists

Graph View

  • Related
  • Refs

Created with Quartz v4.1.0, © 2024

  • GitHub
  • LinkedIn