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.
发布评论
评论(2)
您可能正在寻找 工作线程模式,您可以使用队列来安排要由工作线程“离线”处理的任务。
一些解决方案将使用工作线程池而不是单个线程,通过利用并行化来实现性能提升。
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.
我想到了类似 MapReduce 的东西。可以在工作节点上并行执行多个任务。
编辑:正如@larsmans提到的,这被称为 Master/工人模式。
Something like MapReduce comes to mind. Where multiple tasks can be performed in parallel on worker nodes.
Edit: As @larsmans mentioned, this is known as the Master/Worker pattern.