Advanced Distributed Systems module at HSLU
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

19 lines
417 B

using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
namespace Sync_Ueb03_WaitPool
{
class TestWaitPool
{
static void Main()
{
Object synch = new Object();
MyThread myThread = new MyThread(synch);
new Thread(myThread.Run).Start();
Thread.Sleep(1000);
Monitor.Pulse(synch);
}
}
}