Skip to content

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

@ZiyadNass

Description

@ZiyadNass

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions