工人设计模式 [英] Worker design pattern
本文介绍了工人设计模式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
什么是工作者设计模式?
What is "worker" design pattern?
推荐答案
可能是因为工作线程模式,您可以在其中使用队列来计划要执行的任务被工作线程处理离线。
一些解决方案将使用工作线程池,而不是单线程来实现性能提升通过利用paralelisation。
It could be that you are after a worker thread pattern, where you use a queue to schedule tasks that you want to be processed "offline" by a worker thread. Some solutions will use a pool of worker threads instead of single thread to achieve performance gains by utilising paralelisation.
这篇关于工人设计模式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文