News for hackers. Stuff that matters.
Re:Performance of green threads and why it matters by barrkel on Sunday May 08, 2016 @01:27PM (#11654817)
Concurrency models the nondeterminism of the world outside the program. Parallelism is a performance improvement, at the cost of synchronisation for shared data. The two are orthogonal. Many programs are better written using concurrent primitives; whether they are better of with parallelism is a separate optimisation subject to tradeoffs, like all optimisations. If you can live without preemption, a single threaded world is no bad thing for correctness. Everything that touches the outside world (blocks) may be a green thread switch point though, so it's no panacea.

Without hardware executing code in parallel, it's not parallelism, BTW. It's not semantics; it's specific jargon that means something.

There are no comments on this comment yet.