Functional programming and multicore architecture

前端 未结 9 1355
傲寒
傲寒 2020-12-08 08:36

I\'ve read somewhere that functional programming is suitable to take advantage of multi-core trend in computing. I didn\'t really get the idea. Is it related to the lambda c

9条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-08 08:39

    Omitting any technical/scientific terms the reason is because functional program doesn't share data. Data is copied and transfered among functions, thus there is no shared data in the application.

    And shared data is what causes half the headaches with multithreading.

提交回复
热议问题