Skip to content

Commit 16342ec

Browse files
committed
Fixed RoundRobin Queue
1 parent 5c00ae6 commit 16342ec

File tree

1 file changed

+2
-1
lines changed
  • Process Scheduling Algorithms

1 file changed

+2
-1
lines changed

Process Scheduling Algorithms/RR.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ class Queue
1212
int length() { return counter; }
1313
bool isFull() { return counter == size; }
1414
bool isEmpty() { return counter == 0; }
15-
Queue(int size)
15+
Queue(int init_size)
1616
{
17+
size = init_size;
1718
array = new int[size];
1819
front = rear = counter = 0;
1920
}

0 commit comments

Comments
 (0)