S
S
skomoroh2014-05-23 17:12:28
Python
skomoroh, 2014-05-23 17:12:28

Python, a lot of threads inside a pair of processes, which queue should I use?

On a multi-processor machine, you need to run several processes ( == number of processors ), in each process there will be many, many threads (most in idle mode).
How to transfer tasks between them, which queue to use, what stones are there?
I couldn't find any examples on the internet =(

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2014-07-11
@Jekel

Look towards zeromq,
one master who distributes tasks among workers (equal to the number of cores)
just don't mix zmq + gevent 1.0 - it starts to fail.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question