Is there a point to multithreading?

后端 未结 11 795
无人共我
无人共我 2021-01-02 17:22

I don’t want to make this subjective...

If I/O and other input/output-related bottlenecks are not of concern, then do we need to write multithreaded code? Theoreti

11条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 18:06

    I don't know if you have payed any attention to trends in hardware lately (last 5 years) but we are heading to a multicore world.

    A general wake-up call was this "The free lunch is over" article.

    On a dual core PC, a single-threaded app will only get half the CPU cycles. And CPUs are not getting faster anymore, that part of Moores law has died.

提交回复
热议问题