C++ Process Management Assignment

I need a program that will read the input, then put each new process to a new linked list, and then put processes into queue, and run them in a parallel way.

 might be helpful this is the pseudocode.

The assignment page, its explanation, input and expected output is given below.