Skip to content
Snippets Groups Projects
Commit d9da685f authored by Elizabeth Baker's avatar Elizabeth Baker
Browse files

buffProc -not for task4 test 2

parent c23b9ce3
No related branches found
No related tags found
No related merge requests found
......@@ -549,6 +549,7 @@ process *getNextProcessB(FILE *f, llist *arrivals, process *readAhead) {
//llist_print();
while (readAhead->timeArrived != -1 && !batchEnd) {
if (fgets(line, sizeof line, f) != NULL) {
newProcess = malloc(sizeof(process));
initializeProcess(line, newProcess);
if (newProcess->timeArrived == readAhead->timeArrived) {
llist_add_inorder(newProcess, arrivals, (int (*)(void *, void *)) &leastExecutionTime);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment