4
4
4ndr01d2018-09-13 16:14:04
Python
4ndr01d, 2018-09-13 16:14:04

When to use processes in Python?

When is it better to use Python processes instead of Python streams? What could be the criteria for this (in your opinion) to prefer processes to threads?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
Денис Бондарь, 2018-09-13
@4ndr01d

Используйте потоки для задач, связанных с ограничениями ввода-вывода.
Используйте процессы для задач, связанных с ограничениями процессора.
(с) Билл Любанович - Простой Python

Сергей Горностаев, 2018-09-13
@sergey-gornostaev Куратор тега Python

When a program performs some heavy calculations, limited by the processor, and therefore more than one core must be used.

T
techkuz, 2018-09-13
@techkuz

When you run a program - a process, when a function - a thread

V
Vladlen Grachev, 2015-03-28
@gwer

First hide all blocks (for example, $('.tab_block').hide()), then display the one you need by taking id from href. This is one of the options. In general, you can think of a bunch of them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question