Multithreading question regarding integer over/under flow, data races, etc…
Junior C Developer Interview Questions
172 junior c developer interview questions shared by candidates
What will be printed to the Console at the end of this code? int global = 0; Thread t1 = new Thread(() => { int local = 0; while(global < 3) { local += 1; global += 1; } Console.WriteLine(local); }); Thread t2 = new Thread(() => { global += 1; }); t1.Start(); t2.Start();
Viewing 171 - 180 interview questions