Question: Exercise 4.3: Write a program todemonstrate a printerqueuein whichjobs for printing are added on the basis of priority. Each printing jobshould havename(eg.A,B,C,D....) and priority value(e.g.

Exercise 4.3: Write a program todemonstrate a printerqueuein whichjobs for printing are added on the basis of priority. Each printing jobshould havename(eg.A,B,C,D....) and priority value(e.g. 1=High, 2=Medium, 3=Low). Iftwojobs has same prioritythen FIFO ruleshould beapplied. front A B A C rear 1 2 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
