做操作系统课设的时候使用的基本代码。
- using
System; - using
System.Collections.Generic; - using
System.Text; - using
System.Collections; - using
System.Threading; - namespace
ConsoleApplication4 - {
-
Program -
{ -
container new= ArrayList(); -
Producer producer = -
Consumer consumer = -
void Main( string[]args) -
{ -
Program p = Program(); -
t1 new= Thread(new ThreadStart(p.ThreadProduct)); -
t2 new= Thread(new