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

Console out translated into english

parent 9a104c03
No related branches found
No related tags found
No related merge requests found
using System; using System;
using System.Runtime.CompilerServices; using System.Runtime.CompilerServices;
using System.Threading; using System.Threading;
...@@ -29,7 +29,7 @@ namespace ConsoleApplication1 ...@@ -29,7 +29,7 @@ namespace ConsoleApplication1
if (wakeConsumersUp) if (wakeConsumersUp)
{ {
Console.WriteLine("consumer wurde aufgeweckt"); Console.WriteLine("consumer was woken up");
isAsleep = false; isAsleep = false;
} }
} }
...@@ -47,7 +47,7 @@ namespace ConsoleApplication1 ...@@ -47,7 +47,7 @@ namespace ConsoleApplication1
if (!b.empty()) if (!b.empty())
{ {
Car c = b.pop(); Car c = b.pop();
Console.WriteLine("Auto ausgeparkt " + c.getThisCarId()); Console.WriteLine("car pulled out of parking space. car id = " + c.getThisCarId());
} }
else else
{ {
...@@ -60,27 +60,10 @@ namespace ConsoleApplication1 ...@@ -60,27 +60,10 @@ namespace ConsoleApplication1
} }
} }
} }
/*
private void sleep()
{
while (isAsleep)
{
Console.WriteLine("asleep...");
Thread.Sleep(50);
if (wakeConsumersUp)
{
Console.WriteLine("wurde aufgeweckt");
isAsleep = false;
}
}
}
*/
public static void wakeUp() public static void wakeUp()
{ {
wakeConsumersUp = true; wakeConsumersUp = true;
} }
} }
} }
\ No newline at end of file
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