如何在Smart ThreadPool中增加最大线程大小 [英] How to increase the number of Maximum Thread size in Smart ThreadPool

查看:99
本文介绍了如何在Smart ThreadPool中增加最大线程大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从此站点获得了Smart ThreadPool项目.因为默认的最大线程大小设置为25.我想根据需要将此最大线程大小设置为50或100.怎么做?

我还读到默认情况下,一个处理器的最大线程大小为25.如果是这种情况.我有双处理器,如何将25设置为一个处理器,将25设置为另一处理器.怎么做?


I have got Smart ThreadPool Project from this site. In that the default Maximum thread size is set to 25. I would like to set this Maximum thread size to 50 or 100 According to my need. How to do it?

I have also read that by default one single processor takes the Maximum thread size as 25. If this the case. I have dual processor how to set 25 to one processor and 25 to another processor. How to do it?


Help me through solutions?

推荐答案

如果您从此处的一篇文章中获得了代码,则可能希望在文章下面的论坛部分中发布问题.这样,作者将收到有关您的问题的电子邮件通知.作者始终是回答有关其代码的问题的最佳人选.
If you got the code from one of the articles here, you might want to post a question on the forum section below the article. That way, the author will be notified through email, about your question. The author is always the best person to answer questions about his code.


总之,您不想弄乱线程的数量,这就是ThreadPool的用途. Smart ThreadPool动态地计算线程数.
100个线程?除非您有大量内核,否则性能不会超过20个线程.我要说的是不要搞乱线程池,让像Ami Bar(智能线程池的创建者)这样的人来帮你.
In short you don''t want to mess with the amount of threads, thats what the ThreadPool is there for. The Smart ThreadPool dynamically the number of threads.
100 threads? wont perform better than 20 threads unless you have a f***load of cores. What I''m trying to say is don''t mess with the Thread Pool, let someone like Ami Bar (Creator of the smart Thread Pool) do that for you.


有一个请看下面的CodeProject文章.

智能线程池 [
Have a look at below CodeProject Article.

Smart Thread Pool[^]


这篇关于如何在Smart ThreadPool中增加最大线程大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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