.NET自定义线程池与单独的实例 [英] .NET Custom Threadpool with separate instances

查看:205
本文介绍了.NET自定义线程池与单独的实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是最值得推荐的.NET自定义线程池,可以有不同的实例,即不是每个应用程序使用一个线程池吗?
我需要一个无限队列大小(建设一个履带),并且需要在每个站点,我爬并行运行一个单独的线程池

What is the most recommended .NET custom threadpool that can have separate instances i.e more than one threadpool per application? I need an unlimited queue size (building a crawler), and need to run a separate threadpool in parallel for each site I am crawling.

编辑:
口需要尽可能快地挖掘这些位点的信息,使用用于每个站点的单独线程池会给我来控制在任何给定时间在每个站点上的工作线程的数量的能力。 (不超过2-3)

Edit : I need to mine these sites for information as fast as possible, using a separate threadpool for each site would give me the ability to control the number of threads working on each site at any given time. (no more than 2-3)

由于
Roey

Thanks Roey

推荐答案

我相信智能线程池可以做到这一点。它的线程池类实例化,所以你应该能够创建并根据需要管理单独的网站的具体实例。

I believe Smart Thread Pool can do this. It's ThreadPool class is instantiated so you should be able to create and manage your separate site specific instances as you require.

这篇关于.NET自定义线程池与单独的实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆