How can i increase TPL thread pool size ?
hello. coding 1000 thread web crawler.
currently starts 100 , steadily increases. mean running tasks count.
the rest 900 @ waitingtorun status. want of them run.
after software started, , couple of hours running task count rises 400. want thing run 1000. don't want tpl decide itself.
how can ?
thank you
this how start tasks 1000 tasks
task.factory.startnew(() => { startcrawler(); });
browser based pokemon style mmorpg game developer used asp.net 4.0 routing @ it's monsters
hi,
try http://stackoverflow.com/questions/11075320/using-tpl-how-do-i-set-a-max-threadpool-size
note though seems lot , counter productive : "setting thread pool size large can cause performance problems. if many threads executing @ same time, task switching overhead becomes significant factor."
please mark whatever response solved issue thread marked "answered".
Visual Studio Languages , .NET Framework > Visual C#
Comments
Post a Comment