线程Thread,有参数和参数
2012-05-18 14:10
134 查看
无参数:
NonParameterRun,方法名
有参数
ParameterRun(object str),注意命名时候必须是Object类型
NonParameterRun,方法名
Thread nonParameterThread = new Thread(new ThreadStart(NonParameterRun)); nonParameterThread.Start();
有参数
ParameterRun(object str),注意命名时候必须是Object类型
Thread parameterThread = new Thread(new ParameterizedThreadStart(ParameterRun)); parameterThread.Start("参数");
相关文章推荐
- delphi Createthread的线程传参数(小熊论坛的)
- [转]创建线程并传递参数--AfxBeginThread
- 调用带参数的线程Thread
- 线程Thread,有参数和参数
- 带参数线程的操作(ParameterizedThreadStart,ThreadStart)
- 【转】【Thread】Java向线程传递参数的常用方法【多线程】
- 如何在线程Thread中传入参数一
- [线程]Thead 中传参数RuntimeError: thread.__init__() not called
- Silverlight实用窍门系列:23.Silverlight多线程技术Thread的应用,后台线程更新UI控件,向多线程传递参数【附带源码实例】
- [线程]Thead 中传参数RuntimeError: thread.__init__() not called
- 23.Silverlight多线程技术Thread的应用,后台线程更新UI控件,向多线程传递参数
- 线程 Thread 传参数
- Thread线程的深刻理解和代理方法参数[有图有真相]
- delphi Createthread的线程传参数(小熊论坛的)
- 使用ParameterizedThreadStart委托向线程函数传送参数
- C# multithread,threadpool,ParameterizedThreadStart,传递参数给线程以及回调
- 线程Thread传递一个或多个参数问题
- [C#学习笔记之多线程1]使用ParameterizedThreadStart委托向线程函数传送参数
- C#基础:使用Thread创建线程
- c++11,cocos2d 3.x多线程std::thread demo