“Diferença de python entre pool multiprocessante e threadpool” Respostas de código

Diferença de python entre pool multiprocessante e threadpool

multithreading uses seperate python interpreters as processes,
which do NOT share memory, but can achieve higher performance
cuz every process has its own cpu usage limit!

multithreading is just useful to seperate i/o tasks and other stuff that is not
cpu intensive from the main process to continue working while the seperated thread waits for
something to happen
Anxious Armadillo

Diferença de python entre pool multiprocessante e threadpool

The multiprocessing.pool.ThreadPool behaves the same as the multiprocessing.Pool with the only difference that uses threads instead of processes to run the workers logic.
Thankful Tiger

Respostas semelhantes a “Diferença de python entre pool multiprocessante e threadpool”

Perguntas semelhantes a “Diferença de python entre pool multiprocessante e threadpool”

Mais respostas relacionadas para “Diferença de python entre pool multiprocessante e threadpool” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código