Skip to content

Multithreading in Python #10

@yakutovicha

Description

@yakutovicha

Basics

  • What's Python Global Interpreter Lock

Advanced

  • Multithreading vs multiprocessing
  • Process pool and thread pool executor
  • Python can only run I/O bound threads concurrently, CPU bound work is blocking (GIL)
  • Alternatives to Multithreading:
    • Asyncio
    • Coroutines
  • Synchronisation primitives:
    • Channels
    • Locks
    • Mutexes

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions