4 ms·
Thank you so much Python core developers and steering council. Python is one of my favourite languages along with Java and C. I greatly welcome true multithrea
by samsquire 3y ago
Thank you so much Python core developers and steering council. Python is one of my favourite languages along with Java and C.
I greatly welcome true multithreading in Python.
I use both multiprocessing and multithreading in Python for different projects. See [0] for my multiprocessing example and python Threads for IO heavy tasks in [1]. But it would be far more efficient to use true threads.
Threads can communicate any amount of data in a single atomic almost instant operation. Using the local loopback interface or multiprocessing or pipes, this is not possible.
I am working on a multithreading architecture I call three tier multithreading architecture
https://github.com/samsquire/three-tier-multithreaded-architecture https://github.com/samsquire/three-tier-multithreaded-archit...
My goal is extremely scalable and performant servers but Python is probably the wrong job for that.
[0]: https://news.ycombinator.com/item?id=36897054 https://news.ycombinator.com/item?id=36897054 (my description of my use of multiprocessing)
[1]: https://devops-pipeline.com/ https://devops-pipeline.com/ (my use of multithreading)