From e10a399a8ef82e62f5dbb47fc68229f422ebd084 Mon Sep 17 00:00:00 2001
From: Niklas Bretz <niklas.bretz@student.reutlingen-university.de>
Date: Mon, 12 Dec 2022 14:18:11 +0000
Subject: [PATCH] Deleted commented out code

---
 Aufgabe3/ConsoleApplication1/Program.cs | 77 +------------------------
 1 file changed, 1 insertion(+), 76 deletions(-)

diff --git a/Aufgabe3/ConsoleApplication1/Program.cs b/Aufgabe3/ConsoleApplication1/Program.cs
index 76ad132..52a3076 100644
--- a/Aufgabe3/ConsoleApplication1/Program.cs
+++ b/Aufgabe3/ConsoleApplication1/Program.cs
@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.Collections.Generic;
 using System.Runtime.Remoting.Messaging;
 using System.Threading;
@@ -34,25 +34,6 @@ namespace ConsoleApplication1
                 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()
@@ -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();
-            }
-        }
-    }
-    */
 }
     
 
-- 
GitLab