2 ms·
LMAX Disruptor is multithreaded. Multithreading is more efficient but more difficult to work with. You share the same address space in threads, so you can com
by samsquire 3y ago
LMAX Disruptor is multithreaded.
Multithreading is more efficient but more difficult to work with.
You share the same address space in threads, so you can communicate any amount of data between threads instantly within a lock. The same cannot be said for network traffic or OS pipes or multiprocessing.
Multiprocessing uses pickle to serialize your data and deserialize it in the other python interpreter.
If you start a Python Thread, you're still single threaded due to the GIL.