For the client and worker components, you need to install the Gearman CPAN module, which includes the Gearman: : client and Gearman: : worker modules you need to create clients and workers.
对于客户机和工人组件,需要安装Gearman CPAN模块,其中包括Gearman: Client和Gearman: Worker模块,它们是您创建客户机和工人时需要用到的模块。
The first line loads the module, then you create a new Worker object.
第一行加载模块,然后您创建一个新的Worker对象。
The threads and forks module provide the same interface. You can switch between worker threads and worker processes by changing a single word in your program. Test it yourself.
的螺纹和福克斯模块提供相同的接口。你可以通过改变程序中的一个文字工作者线程和工作进程之间的切换。测试吧。
应用推荐