Round Robin scheduling algorithm | Sololearn: Learn to code for FREE!
+ 1

Round Robin scheduling algorithm

I have tried to write a program for round robin scheduling but I am not able to find a way to stop a while loop(marked as //PROBLEM) https://code.sololearn.com/cCMb5R8alQuN/?ref=app

8th Feb 2019, 10:53 PM
harshit
harshit - avatar
2 Answers
+ 1
There is no break in your loop AND it is a while(1) so you can't really go out of it. I did not check for the logic but adding a break where it should leave the loop
9th Feb 2019, 4:53 AM
Baptiste E. Prunier
Baptiste E. Prunier - avatar
0
Also there might be some minor logical error as this program involves extensive use of pointers.
8th Feb 2019, 10:54 PM
harshit
harshit - avatar