Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "linkedListArray.h"
- int main()
- {
- struct node* array[MAXPRI] = { NULL };
- //Create(array);
- Push(array, 1, 5);
- Display(array);
- Push(array, 2, 4);
- Push(array, 2, 8);
- Push(array, 2, 1);
- Display(array);
- Push(array, MAXPRI-2, 9);
- Display(array);
- Push(array, MAXPRI-1, 6);
- Display(array);
- Execute(array);
- Display(array);
- Execute(array);
- Display(array);
- printf("Process 1 has priority %d\n", Search(array, 1));
- printf("Process 6 has priority %d\n", Search(array, 6));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement