title: console.writeline within Task does not work
body: <p>I am learning task aysny based programing and cannot get to make this code work. The console prints the message only once and then disappears. </p>
  
  <p>if I remove the read line and run the program(not debug mode) the console just appears with message saying press a key to continue. When I debug and put the debugger in console.write then it works fine for some time and then the console window disappears and restarts again. If I use for loop &lt;10000 instead of while  then also the behaviors is same   </p>
  
  <p>Could you please suggest what I am doing wrong.</p>
  
  <pre><code>static void Main(string[] args)
          {
              multitasker();
  
          }
  
         static async void   multitasker()
          {
              Task task1 = new Task(PrintMessageA);
              task1.Start();
              await task1;            
          }
  
          static void PrintMessageA()
          {
            while(true)
              {
                  Console.WriteLine("Message from A");
                  Console.ReadLine();
  
              }
          }
  </code></pre>