-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.

4

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.