Tipton, KS | gpsdude - 2/18/2025 22:28
multi thread
What are some concrete examples of applications that need to be multi-threaded, or don't need to be, but are much better that way?
There is no hard and fast answer, but most of the time you will not see any advantage for systems where the workflow/calculation is sequential. If however the problem can be broken down into tasks that can be run in parallel (or the problem itself is massively parallel [as some mathematics or analytical problems are]), you can see large improvements.
If your target hardware is single processor/core, you're unlikely to see any improvement with multi-threaded solutions (as there is only one thread at a time run anyway!)
Writing multi-threaded code is often harder as you may have to invest time in creating thread management logic.
Some examples
...
...
...
https://stackoverflow.com/questions/455084/what-kinds-of-application... |