Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
Inf3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Marcel Kehrberg
Inf3
Commits
e10a399a
Commit
e10a399a
authored
2 years ago
by
Niklas Bretz
Browse files
Options
Downloads
Patches
Plain Diff
Deleted commented out code
parent
c177352c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Aufgabe3/ConsoleApplication1/Program.cs
+1
-76
1 addition, 76 deletions
Aufgabe3/ConsoleApplication1/Program.cs
with
1 addition
and
76 deletions
Aufgabe3/ConsoleApplication1/Program.cs
+
1
−
76
View file @
e10a399a
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();
}
}
}
*/
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment