Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否有任何标准算法可以在主/从模式中的从属之间分配工作?我现在有主人通过队列在奴隶之间分配工作。但是如果我必须将工作优先级放入图片中,可以使用什么样的数据结构/算法?
寻找一些建议。
提前致谢,
比贝克·达瓦迪
您可以使用堆/优先级队列。