开发者

Master Slave Pattern : Job Distribution

Are there any standard algorithm to distribute the work among the slaves in 开发者_JAVA技巧the master/slave pattern? I have master which distributes job among the slaves via queue for now. But If I have to put job priority into the picture what kind of data structure/algorithm can be used?

Looking for some suggestion.

Thanks in advance,

Bibek Dawadi


You could use a Heap/Priority Queue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜