-4

I am trying to understand multi-threading in python3. Does python3 support multithreading? Yes/No. Core Python packages/library used for multi-threading not the 3rd party, and difference between multithreading and multiprocessing.

Zahoor Saleem
  • 614
  • 7
  • 15

1 Answers1

1

Obviously yes. That's what the threading and concurrent.futures built-in modules are for (the latter also supports multi-process processing, as does multiprocessing). That said, CPython still has a GIL, so without third-party packages involved (or use of multi-process techniques), you'll only see benefits from threading on I/O bound tasks; CPU bound threads will only run one at a time.

ShadowRanger
  • 143,180
  • 12
  • 188
  • 271