Skip to content

Commit

Permalink
Fixing Process generator Error
Browse files Browse the repository at this point in the history
  • Loading branch information
Yahya-Ashraf-Mohamed committed Dec 24, 2022
1 parent 1bf77be commit 4c33349
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Header_File/Process_Heap.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
==============================
*/

//Create Periority queue of processes
//Create Priority queue of processes
//original source: http://rosettacode.org/wiki/Priority_queue#C

#ifndef OS_STARTER_CODE_PROCESSHEAP_H
Expand Down
2 changes: 1 addition & 1 deletion process_generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ int main(int argc, char * argv[])
SendProcess(pNextProcess); //send this process to the scheduler
ProcDequeue(Waiting_ProcessQueue, &pNextProcess); //dequeue this process from the processes queue
free(pNextProcess); //free memory allocated by this process
kill(Scheduler_Pid, SIGUSR1); //send SIGUSR1 to the scheduler
}
usleep(500000); //sleep for 0.5 sec
}

// Clear all resources || send 0 = normal exit || other = interrupt
Expand Down

0 comments on commit 4c33349

Please sign in to comment.