在C#.net中将线程池用于多个按钮 [英] Use thread Pool for Multiple Button in C#.net

查看:84
本文介绍了在C#.net中将线程池用于多个按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,
请告诉我,如何在C#.net中使用线程池?

Hi friends,
Please tell me, How to use Thread pool in C#.net?

推荐答案

线程池不适用于按钮.您在这里没有想要实现的目标.当您提出问题时,请确保提及您的最终目标.这样,即使您的主要问题完全没有道理,您仍然有机会获得一些实用建议.

—SA
Thread pools are not for buttons. There is nothing you want to achieve here. When you ask a question, make sure you mention you ultimate goal; in this way, even if your main question completely lacks sense, you still get a chance to get some practical advice.

—SA


我想你的意思是按钮单击开始的动作应在单独的线程中运行.

使用 System.Threading.Thread类的实例 [ ^ ]. AFAIK这些线程源自.NET线程池.
I suppose you mean that the action a button click starts shall run in a separate thread.

Use an instance of the System.Threading.Thread class[^]. AFAIK those threads origin from the .NET thread pool.


这篇关于在C#.net中将线程池用于多个按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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