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
444 B

using System.Threading;
namespace LostSignals
{
class AWaitTest
{
static void Main()
{
ISynch signal = new AWait();
Operator op = new Operator(signal);
new Thread(op.Do).Start();
for (int i = 0; i < 10; i++)
{
Worker worker = new Worker(signal, op, "Worker" + i);
new Thread(worker.Do).Start();
}
}
}
}