Elance Exams Answers PDF file

-- PDF FILE --
Download PDF file of elance Zoho Creator Exam Answers
elance-zoho-creator-exam.pdf

What will be the output of the following code : public static void Main() { int value = 1; Task t1 = Task.Run(() => { if (value == 1) { Thread.Sleep(1000); value = 2; } }); Task t2 = Task.Run(() => { value = 3; }); Task.WaitAll(t1, t2); Console.WriteLine(value); Console.ReadLine(); }

2
3
1
unpredictable
Top
  • Follows us our servcies
  • Facebook icon
  • Linkedin icon
  • twitter icon
  • rss icon
  • social icon