M
M
Morrdor2020-08-09 14:31:12
Python
Morrdor, 2020-08-09 14:31:12

What is the difference between multithreading and multiprocessing in python?

What is the difference between multithreading and multiprocessing?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
soremix, 2020-08-09
@SoreMix

Multiprocessing runs several files, spreading a task on them. Those. N .py files will hang in the task manager, and the load on the system is higher.
The multithread splits the task inside a single file.

S
Sergey Gornostaev, 2020-08-09
@sergey-gornostaev

In the same way that a process differs from a thread.

S
Sergey Tikhonov, 2020-08-10
@tumbler

It is in python that multiprocessing allows you to use several cores in python calculations, in the case of multithreading, often (but not always) everything rests on one core due to the Global Interpreter Lock (which is a lifeline in the sea of ​​flight conditions and other delights of parallel data processing)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question