3 ms·
"The difficulty of concurrency lies in the problem itself, not the API." Isn't it possible that it's both? Concurrency is hard, but I think the classical thre
by sah 18y ago
"The difficulty of concurrency lies in the problem itself, not the API."
Isn't it possible that it's both? Concurrency is hard, but I think the classical threading model makes it harder. There are simplifications that really do make it easier to reason about concurrency, like doing all inter-thread communication via queues, OpenMP-style "parallelize this for loop" constructs, and pure-functional immutable data structures.
- ajross 18y agoSure. And a reasonable discussion about that stuff and the tradeoffs involved (queues handlers need to be carefully balanced, for instance, and parallel loop constructs tend to drown CPUs in locking overhead) would be welcome. But the linked post was about "threads are bad, use secret sauce instead". There is no sauce.
- LogicHoleFlaw 18y agoI think he is complaining more that so many other people think that threads are the secret sauce.