共享队列 - MultiThreading C# [英] Shared Queues - MultiThreading C#

查看:119
本文介绍了共享队列 - MultiThreading C#的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想实现一个多线程应用程序。提及附件中组件的各种角色



模型生产者引擎 - 在接收文件时会创建一个工作单元并将其推入队列。会有多个工人(模型工人引擎)来处理这些工作单位。可以在不同的服务器上配置许多模型工作引擎。



我如何实现共享队列,以便不同服务器上的不同模型工作引擎可以解除工作单元和进程的负担。



无法上传图片,遗憾的是





谢谢

Rajaraman.S

I want to implement a multi-threaded application. Mentioning the various roles of the components in the attachment

Model Producer Engine - On receiving a file would create a work unit and push it into the Queue. There would be multiple workers ( Model Worker Engines ) that would
process these work units. There can be many Model Worker Engines configured across different Servers.

How could I implement a shared queues so that different Model Worker Engines on different Server can deque the work units and process.

There is no way to upload an image, unfortunately


Thanks
Rajaraman.S

推荐答案

一旦你有多台服务器,那么你必须有一个排队服务器。



尝试: http://www.rabbitmq.com/download.html [< a href =http://www.rabbitmq.com/download.htmltarget =_ blanktitle =新窗口> ^ ]
Once you have multiple servers then you have to have a queuing server.

Try : http://www.rabbitmq.com/download.html[^]


这篇关于共享队列 - MultiThreading C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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