static void Main(string[] args) { //线程启动 //ThreadingText t = new ThreadingText(); //Thread myThread = new Thread(new ThreadStart(t.beta)); //myThread.Start(); //if (myThread.IsAlive) { // Thread.Sleep(10); // Console.WriteLine(myThread.ThreadState.ToString()); // myThread.Abort(); // Console.WriteLine(myThread.ThreadState.ToString()); // myThread.Join(); // Console.WriteLine(myThread.ThreadState.ToString()); // Console.WriteLine(); // Console.WriteLine("Alpha.Beta has finished"); // float i = 54564543543543545341.1f; // int s = (int)i; // Console.WriteLine(s); // Console.ReadLine(); //} //余额 //Balance b = new Balance(); //for (int i = 0; i < 10; i++) { // Thread s = new Thread(new ThreadStart(b.doS)); // threads[i] = s; // threads[i].Name = i.ToString()+"号线程"; // threads[i].Start(); //} //Console.ReadLine(); //生产者与消费者 //Cell c = new Cell(); //GetCell getc = new GetCell(c, 20); //SetCell setc = new SetCell(c, 20); //Thread g = new Thread(new ThreadStart(getc.doGetCell)); //Thread s = new Thread(new ThreadStart(setc.doSetCell)); //s.Start(); //g.Start(); //Console.ReadLine(); //定时器 //TimerCallback callback = new TimerCallback(checkStatus); //TimerTest s = new TimerTest(); //Timer tim = new Timer(checkStatus, s, 0, 1000); //s.tim = tim; //while (s.tim != null) { } //Console.WriteLine("Timer example done."); //Console.ReadLine(); //互斥对象 MutexTest.test(); }