hi there, i am new to this so thankyou for helping me out!

i am trying to implement a simple printer queue simulation using 2 processes. the first will create a series of child processes with the PID of each process being inserted into a priority queue.

the second process (running in a separate window) needs to simulate the de-spooling process including deleting a printer job by priority order and killing the corresponding process.

Can anyone help me out with some example code? i am not very competent with C Programming, so any advice is gratefully received

Many thanks