Python, Ruby, Haskell - Do they provide true multithreading?

后端 未结 8 651
我寻月下人不归
我寻月下人不归 2021-02-01 22:31

We are planning to write a highly concurrent application in any of the Very-High Level programming languages.

1) Do Python, Ruby, or Haskell support true multithreading?

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-01 22:49

    The GHC compiler will run your program on multiple OS threads (and thus multiple cores) if you compile with the -threaded option and then pass +RTS -N -RTS at runtime, where = the number of OS threads you want.

提交回复
热议问题