Ruby:任何用于线程池的宝石? [英] Ruby: Any gems for threadpooling?

查看:22
本文介绍了Ruby:任何用于线程池的宝石?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何人可以推荐的线程池 gem?

Is there a gem for threadpooling anyone can recommend?

推荐答案

根据我的经验,fork/process pooling 比 Ruby 中的 readpooling 更有效(假设您在线程通信方面不需要太多).前段时间我创建了一个名为 process_pool 的 gem,它是一个非常基本的进程池,带有一个基于文件的作业队列(你可以在这里查看:http://github.com/psyho/process_pool).

From my experience forking/process pooling is much more effective than thereadpooling in Ruby (assuming you do not need much in terms of thread communication). Some time ago I created a gem called process_pool, which is a very basic process pool with a file based job queue (you can check it out here: http://github.com/psyho/process_pool).

这篇关于Ruby:任何用于线程池的宝石?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆