Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

.NET Custom Threadpool with separate instances

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.

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)

Thanks Roey

like image 687
Roey Avatar asked Jun 23 '09 10:06

Roey


2 Answers

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.

like image 131
Adam Ralph Avatar answered Oct 24 '22 08:10

Adam Ralph


Ami bar wrote an excellent Smart thread pool that can be instantiated.

take a look here

like image 3
yosig81 Avatar answered Oct 24 '22 08:10

yosig81