Please introduce a multi-processing library in Perl or Ruby

后端 未结 5 737
囚心锁ツ
囚心锁ツ 2021-02-04 20:42

In python we can use multiprocessing modules. If there is a similar library in Perl and Ruby, would you teach it? I would appreciate it if you can include a brief sample.

5条回答
  •  情书的邮戳
    2021-02-04 20:55

    Ruby:

    • Working with multiple processes in Ruby
    • Concurrency is a Myth in Ruby

    Perl:

    • Harnessing the power of multicore
    • Why Perl Is a Great Language for Concurrent Programming

    Also, Perl's threads are native operating system threads, so you can just use those to take advantage of multiple cores.

提交回复
热议问题