• λ我爱Aspx >> Asp.Net >> 线程如何挂起和继续?要使用最新的模式,也就是System.Threading.Monitor
  • 线程如何挂起和继续?要使用最新的模式,也就是System.Threading.Monitor

  • :aspxer  Դ:csdn  :2007-7-6 2:51:38  ؼ:
  • //Create the second thread.

    Thread tSecond = new Thread(new ThreadStart(test.SecondThread));

    //Start threads.

    tFirst.Start();

    tSecond.Start();

    //wait to the end of the two threads

    tFirst.Join();

    tSecond.Join();

    //Print the number of queue elements.

    Console.WriteLine("Queue Count = " + test.GetQueueCount().ToString());

    Console.ReadLine();

    }

    }

    }

    Ҷƪл˵?
  • һƪcheckbox入门问题,麻烦各位
    һƪ学习哪门Web开发语言好?