Menu

[solved] – Question 98104

Create
template <typename T> void prioritized_insert(T& new_item) to the LinkedList class.

This function must make some checks before inserting the element into the list to keep the list sorted in descending order according to the Processes’ priority. High priority means high importance and vice versa

#define LOW_PRIORITY 0
#define MEDIUM_PRIORITY 31
#define HIGH_PRIORITY 63

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *