2 ms·
> It didn't work with his toy example, calling the Fibonacci function, because it's pure Python. maybe I do want to write pure python AND have multi-threaded a
by znpy 6y ago
> It didn't work with his toy example, calling the Fibonacci function, because it's pure Python.
maybe I do want to write pure python AND have multi-threaded applications ?
- Geminidog 6y agoOne use case is IO bound applications. Similar to NodeJS which can handle 10K concurrent IO calls on a single thread, python releases the GIL on IO. So you can write pure python and have multi threading and have all the benefits of "parallelism" depending on whether or not python releases the GIL which it does with certain libraries and on IO. For all else use multiprocessing.