Why is Console.Readline not executing as expected
I have the following code below to work with. The problem I have here is that the code runs through the while loop without waiting for input on the line String temp = Console.ReadLine() . Need help understanding why and how to fix please. Thanks in advance! /*Banker's algorithm Implementation*/ class Program { static void Main(string[] args) { int n = 0;//number of resources we will be dealing with int proc_num = 0;//Total number of processes to share available resources IDictionary<String, SysProcess> processes = new Dictionary<String, SysProcess>(); IDictionary<String, int> MaxR = new