Skip to content
Snippets Groups Projects
Commit e10a399a authored by Niklas Bretz's avatar Niklas Bretz
Browse files

Deleted commented out code

parent c177352c
No related branches found
No related tags found
No related merge requests found
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Runtime.Remoting.Messaging; using System.Runtime.Remoting.Messaging;
using System.Threading; using System.Threading;
...@@ -34,25 +34,6 @@ namespace ConsoleApplication1 ...@@ -34,25 +34,6 @@ namespace ConsoleApplication1
newThread.Start(); newThread.Start();
} }
/*
Producer p = new Producer(b);
Producer p2 = new Producer(b);
Consumer c = new Consumer(b);
Consumer c2 = new Consumer(b);
Thread producer = new Thread(p.produce);
Thread producer2 = new Thread(p2.produce);
Thread consumer = new Thread(c.consume);
Thread consumer2 = new Thread(c2.consume);
producer.Start();
producer2.Start();
consumer.Start();
consumer2.Start();
*/
} }
static void setAsleep() static void setAsleep()
...@@ -62,62 +43,6 @@ namespace ConsoleApplication1 ...@@ -62,62 +43,6 @@ namespace ConsoleApplication1
} }
} }
/*
public class Test
{
private String output = "Hallo";
private Mutex mutex = new Mutex();
public void setOutput(string output)
{
this.output = output;
}
public string getOutput()
{
return this.output;
}
public Mutex getMutex()
{
return mutex;
}
public void runTest()
{
//Console.WriteLine(output);
Thread.Sleep(50);
}
}
public class ChangeOutput
{
Test test;
private string changeTo;
public ChangeOutput(Test test, String changeTo)
{
this.changeTo = changeTo;
this.test = test;
}
public void badbad()
{
while (true)
{
Mutex m = test.getMutex();
Thread.Sleep(1000);
m.WaitOne();
test.setOutput(changeTo);
Console.WriteLine(changeTo);
m.ReleaseMutex();
}
}
}
*/
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment