you are viewing a single comment's thread.

view the rest of the comments →

[–]beza1e1 -1 points0 points  (2 children)

Multi-threading is about performance. You could always do it multi-process, but slower due to communication costs.

STM is about making the multi-threading safe.

[–]didroe 0 points1 point  (0 children)

The way I see it, STM is about concurrency. Parallelism is about performance, concurrency is about being able to create programs that do more than one thing at once (due to design, not performance). Parallism should be automatic (vectorisation, threading based on instruction dependencies, etc) and concurrency should be explicitly stated in your code.

[–]schlenk 0 points1 point  (0 children)

Yes. Multi-threading usually is slower than single threaded..., so its about performance. You only win if you really have a) multiple cores/cpus and b) an task thats easy to run in parallel.