B
B
Bogdan Spinner2018-07-11 16:00:23
Python
Bogdan Spinner, 2018-07-11 16:00:23

What to use, multithreading or multiprocessing?

Good afternoon.
The task is to parse data from vk.com with some periodicity.
I can not understand what is better to use for parallel data processing (data must be written to the database).
There are several VK accounts that collect information about users in the group. Before that, the multiprocessing module was used. Now the question arose, can threads be used for such things?
Please explain which is better to use.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
planc, 2018-07-11
@bogdan_spinner

multithreading - for I/O operations
multiprocessing - for computing

N
Nick V, 2018-07-11
@half-life

asyncio

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question