Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "main" java.lang.IndexOutOfBoundsException: #2

Open
ZiyadNass opened this issue Apr 9, 2021 · 0 comments
Open

Comments

@ZiyadNass
Copy link

hii boss
I did exactly what have you said in the file name I wrote a Path of csv file and the quantum

but it say there is an Exception at
{
Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.ArrayList.rangeCheck(Unknown Source)
at java.util.ArrayList.remove(Unknown Source)
at Scheduler.rr(Scheduler.java:38)
at Driver.main(Driver.java:24)
}

at this specific line in Scheduler class
if (cpu == null) {
cpu = readyQueue.remove(0);
}

one more thing how can i add the
Time first process comes
,second process executed.
time last process executed.

that would help so much...
thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant