3 ms·
Maybe "Scala concurrency surprises" would be a better title.
by smegel 11y ago
Maybe "Scala concurrency surprises" would be a better title.
- masklinn 11y agoIt uses the JVM's threadpools directly so it applies to more or less any JVM-based language, and the problems it talks about (expensive sequential operation before threadpool submission and unbounded threadpool queue) are pretty common issues. Witness the unbounded and unconfigurable (though replaceable — at your own risk since you're setting a "private" variable of the pool) queue of Python 3's threadpool: https://hg.python.org/cpython/file/default/Lib/concurrent/futures/thread.py#l99 https://hg.python.org/cpython/file/default/Lib/concurrent/fu...