开发者

Master Slave Pattern : Job Distribution

开发者 https://www.devze.com 2023-02-11 00:57 出处:网络
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 ha

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

精彩评论

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

关注公众号