阅读背景:

通过启动多个进程而不是使用线程来扩展ruby脚本

来源:互联网 

I want to increase the throughput of a script which does net I/O (a scraper). Instead of making it multithreaded in ruby (I use the default 1.9.1 interpreter), I want to launch multiple processes. So, is there a system for doing this to where I can track when one finishes to re-launch it again so that I have X number running at any time. ALso some will run with different command args. I was thinking of writing a bash script but it sounds like a potentially bad idea if there already exists a method for doing something like this on linux.I want to increase the throughput of a script w




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: