What is the difference between multicore programming in Erlang and other language?

后端 未结 5 1491
悲哀的现实
悲哀的现实 2021-01-30 05:38

I read Joe Armstrong\'s \'Programming Erlang\', and the \'n times faster in n core machine\' theory. The efficient way to multicore programming in Erlang is to use lots of proce

5条回答
  •  逝去的感伤
    2021-01-30 06:23

    Context switch is extremely expensive. There are none in Erlang. Locks makes traditional programs start to think which thread is going to execute next. That is also extremely expensive.

提交回复
热议问题