http://cache.baidu.com/c?m=9f65cb4a8c8507ed4fece763104681254743801464849446289fc45f93130a1c187bf4ba53634a5996d27b1355e81702fdf14034774477a3de95c81cd2ace32238ff22230017913562c418dfdc3024d656924de8df1ae5adf14284ded8c4ab5044cb23120bf4e7fd2e1764cb78816526e3d78e39134863cbfa416fe828033e9e5357c742ee97397977f5e1a9585bc25ac7106580de35a73f62a262d0086b2353d13aa6785031319058568c534c0185ea2df05a795753c65fb2c9d6c7985ffdd9fd30e8edbba538e16af1c49aee07456725fa32bfdbbeb02a653515a9c0c962c025bd8afbcb38fe62a3072cbb4a075e7ccf1b83f48b4082684d84e37f8d233527581da9b3638f05676e41bf4e12a66bc462b0fe613dddfdec8f886431b8e8cf64768ebacf33a01d0a34ec565567bce02501&p=893bdd16d9c25fe609bd9b7847&user=baidu
解决方案 »
- 将按钮循环生成圆形排列、求指正
- 假如sql语句里是一个事务,用ExecuteNonQuery方法可以吗?
- [高分相赠]求一份区号+城市名称的完整列表,以SQL语句提供最好
- vc下的char lpString[32];如何转成c#里的代码
- Socket编程~C/S结构的一篇代码.出现了点问题,大家帮着解决一下!
- 谁帮我翻译下这段c++代码,转换成c#的
- 请问用Adapter调用多个存储过程,发生错误时怎么使用事务一起回滚?
- 高手请进!关于datagrid问题
- C#中,存储图片问题
- 同志们,web控件和服务器控件有什么不同啊?
- 求PC、互联网方面的面向最终用户的软件设计与开发 大牛
- 求教无驱动操作DBF数据库
// Summary:
// The System.Threading.Thread can be scheduled after threads with AboveNormal
// priority and before those with BelowNormal priority. Threads have Normal
// priority by default.
Normal = 2,
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
namespace Ex_20_4
{
class Program
{
static void Main(string[] args)
{
MyThreadClass o1 = new MyThreadClass("hackcat1,我的优先级是:Normal!");
Thread t1 = new Thread(o1.ThreadMain);
t1.Priority = ThreadPriority.Normal;
t1.Start();
MyThreadClass o2 = new MyThreadClass("hackcat2,我的优先级是:Normal!");
Thread t2 = new Thread(o2.ThreadMain);
t2.Priority = ThreadPriority.Normal;
t2.Start();
MyThreadClass o3 = new MyThreadClass("hackcat3,我的优先级是:Normal!");
Thread t3 = new Thread(o3.ThreadMain);
t3.Priority = ThreadPriority.Normal;
t3.Start();
MyThreadClass o4 = new MyThreadClass("hackcat4,我的优先级是:Normal!");
Thread t4 = new Thread(o4.ThreadMain);
t4.Priority = ThreadPriority.Normal;
t4.Start();
Console.Read();
}
}
public class MyThreadClass
{
private String Msg;
public MyThreadClass(String Msg)
{
this.Msg = Msg;
}
public void ThreadMain()
{
Console.WriteLine("字段Msg的值是{0}", Msg);
}
}
}
跑了10来次,发现每次结果都不一样,这个是不是随机的?