Slide 6
Slide 6 text
§ If we have more CPU, threads improve performance (if the code is structured
correctly)
§ Improved throughput (technically, more threads == more throughput)
§ Improves responsiveness; the whole program will not block, even though parts are.
§ Threads run on the same process, so resource sharing is easy (it has side effect as
well)
§ Economy, we can use all CPUs. So no cpu cycles are wasted
2022-06-09
@bazlur_rahman 6